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(datastore): Flutter: fail to serialize list of custom type values #2462

Conversation

HuiSF
Copy link
Member

@HuiSF HuiSF commented Jun 1, 2023

  • PR title and description conform to Pull Request guidelines.

Issue #, if available:

Description of changes:

A custom type field may contain a single custom type, or a list custom type, the original code change fails to handle the latter. This PR fixes this issue.

This change is isolated to Flutter use cases only.

How did you test these changes?
(Please add a line here how the changes were tested)

  • Added unit tests
  • Ran integration tests in amplify-flutter

Documentation update required?

  • No
  • Yes (Please include a PR link for the documentation update)

General Checklist

  • Added Unit Tests
  • Added Integration Tests
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)

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

div5yesh
div5yesh previously approved these changes Jun 1, 2023
mattcreaser
mattcreaser previously approved these changes Jun 1, 2023
@HuiSF HuiSF dismissed stale reviews from mattcreaser and div5yesh via 188d157 June 2, 2023 15:48
@HuiSF HuiSF force-pushed the hui/fix/datastore/serialized-custom-type-cast branch from 13794c2 to 188d157 Compare June 2, 2023 15:48
@mattcreaser mattcreaser merged commit 0578a47 into aws-amplify:main Jun 8, 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.

4 participants