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: Apply Resource Validator on SAM GraphQL Resources #2985

Merged
merged 4 commits into from
Mar 2, 2023

Conversation

GavinZZ
Copy link
Contributor

@GavinZZ GavinZZ commented Mar 1, 2023

Issue #, if available

Description of changes

Use resource validator as a runtime check on nested properties. No need to use sam_expect anymore.

Description of how you validated changes

All tests passed

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@GavinZZ GavinZZ requested a review from a team as a code owner March 1, 2023 23:04
Copy link
Contributor

@pradrx pradrx left a comment

Choose a reason for hiding this comment

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

These are going to be very useful!! Thanks for taking it on.

Left small comments, but looks good overall. I'm creating our DataSource changes now so this will be very helpful in translating that over using models.

samtranslator/internal/model/appsync.py Outdated Show resolved Hide resolved
samtranslator/model/sam_resources.py Outdated Show resolved Hide resolved
@GavinZZ GavinZZ force-pushed the resource_validator_with_graphql branch from 8385b44 to 58be7ab Compare March 2, 2023 00:04
@GavinZZ GavinZZ force-pushed the resource_validator_with_graphql branch from 58be7ab to 73d48fc Compare March 2, 2023 00:09
@GavinZZ GavinZZ changed the title Apply Resource Validator on SAM GraphQL Resources feat: Apply Resource Validator on SAM GraphQL Resources Mar 2, 2023
@xazhao
Copy link
Contributor

xazhao commented Mar 2, 2023

The error messages are kinda hard to review. Can we integrate with this change so it's easier to review?

@GavinZZ
Copy link
Contributor Author

GavinZZ commented Mar 2, 2023

The error messages are kinda hard to review. Can we integrate with this change so it's easier to review?

Going to do that in a separate PR. This branch feat-appsync is super outdated compared to develop.

@GavinZZ GavinZZ merged commit 59530f5 into aws:feat-appsync Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants