Open admund opened 2 years ago
Any chance this PR could be reviewed? I really don't want to write custom bash scripts to fix this simple issue
I would also be curious if there's any possibility this could be reviewed? Confirmed that the iOS version of the repo uses an unknown case to handle unknown enum values.
In the meanwhile you can use these gradle tasks on Android while we have no fix coming soon https://gist.github.com/leffsu/c596197eb231f746303fa216a0a81486
In the meanwhile you can use these gradle tasks on Android while we have no fix coming soon https://gist.github.com/leffsu/c596197eb231f746303fa216a0a81486
Thanks! I appreciate the snippet. We'll give that a shot in the meantime.
Issue #, if available: https://github.com/awslabs/aws-mobile-appsync-sdk-android/issues/349
Description of changes: When somebody will add a new value for any Enum in the schema and will start sending it, apps will older schema will crash. I fixed the code generator to handle empty or unknown Enum values. Fix:
Old generated code:
New generated code:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.