Skip to content
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

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

Torantulino
Copy link
Member

No description provided.

@Torantulino Torantulino requested a review from a team as a code owner December 6, 2024 19:56
@Torantulino Torantulino requested review from Bentlybro and kcze and removed request for a team December 6, 2024 19:56
@Torantulino Torantulino changed the title feat(Blocks) Add Mailerlite blocks feat(Blocks): Add Mailerlite blocks Dec 6, 2024
Copy link
Contributor

github-actions bot commented Dec 6, 2024

This PR targets the master branch but does not come from dev or a hotfix/* branch.

Automatically setting the base branch to dev.

@github-actions github-actions bot changed the base branch from master to dev December 6, 2024 19:56
@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end platform/blocks size/xl conflicts Automatically applied to PRs with merge conflicts labels Dec 6, 2024
Copy link
Contributor

github-actions bot commented Dec 6, 2024

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

Copy link

netlify bot commented Dec 6, 2024

Deploy Preview for auto-gpt-docs ready!

Name Link
🔨 Latest commit 1db06fc
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/675356e86ea24800083bb97f
😎 Deploy Preview https://deploy-preview-8901--auto-gpt-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Torantulino Torantulino marked this pull request as draft December 6, 2024 19:58
Comment on lines +84 to +89
"credentials": {
"provider": "mailerlite",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"type": "api_key",
"title": "Mock MailerLite API key",
},
Copy link
Member

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

Comment on lines -97 to -105
"""
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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment on lines +34 to +45


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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why these changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Automatically applied to PRs with merge conflicts platform/backend AutoGPT Platform - Back end platform/blocks platform/frontend AutoGPT Platform - Front end size/xl
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants