-
Notifications
You must be signed in to change notification settings - Fork 44.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Blocks): Add Mailerlite blocks #8901
base: dev
Are you sure you want to change the base?
Conversation
…ption-agent-executor-block' into toran/open-2057-mailerlite-blocks
This PR targets the Automatically setting the base branch to |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
✅ Deploy Preview for auto-gpt-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
"credentials": { | ||
"provider": "mailerlite", | ||
"id": "01234567-89ab-cdef-0123-456789abcdef", | ||
"type": "api_key", | ||
"title": "Mock MailerLite API key", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TEST_CREDENTIALS_INPUT
instead of this object
""" | ||
Validate the data against the schema. | ||
Returns the validation error message if the data does not match the schema. | ||
""" | ||
try: | ||
jsonschema.validate(data, cls.jsonschema()) | ||
return None | ||
except jsonschema.ValidationError as e: | ||
return str(e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
|
||
|
||
def validate_jsonschema(schema: dict[str, Any], data: dict[str, Any]) -> str | None: | ||
""" | ||
Validate the data against the schema. | ||
Returns the validation error message if the data does not match the schema. | ||
""" | ||
try: | ||
jsonschema.validate(data, schema) | ||
return None | ||
except jsonschema.ValidationError as e: | ||
return str(e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why these changes?
No description provided.