Gen 2 codegen generates wrong getters for "id" field in a model #790
Labels
bug
Something isn't working
Gen 2
transferred
Issue has been transferred from another Amplify repository
Description
In a scenario that we have a CDK backend with a new L3 construct, the new Amplify codegen does not generate the "id" property properly from a schema file. When the id is an integer it assumes it is a String and the generated code is broken.
Categories
Steps to Reproduce
Following lines will fail:
Screenshots
No response
Platforms
Flutter Version
3.16.9
Amplify Flutter Version
1.6.1
Deployment Method
Amplify CLI
Schema
The text was updated successfully, but these errors were encountered: