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

fix: generate list types will nullable elements #9310

Merged
merged 1 commit into from
Dec 19, 2021

Conversation

edwardfoyle
Copy link
Member

@edwardfoyle edwardfoyle commented Dec 14, 2021

Description of changes

Partially reverts the behavior that was added in #8166. The array itself in the list type is still non-null but the elements are generated as nullable. This is because individual elements can come back as null if there is an error in the VTL resolver for that record

Issue #, if available

Description of how you validated changes

Manually verified and updated unit test snapshots

Checklist

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

@edwardfoyle edwardfoyle requested a review from a team as a code owner December 14, 2021 19:08
Copy link
Contributor

@lazpavel lazpavel left a comment

Choose a reason for hiding this comment

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

LGTM

@akshbhu akshbhu merged commit e972956 into aws-amplify:master Dec 19, 2021
@github-actions
Copy link

👋 Hi, this pull request was referenced in the v7.6.5 release!

Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v7.6.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
referenced-in-release Issues referenced in a published release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants