amplify-codegen
amplify-codegen copied to clipboard
Flutter: enums in schema.graphql can not begin with a lowercase letter or the code gen will fail
Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v16.14.2
Amplify CLI Version
9.2.1
What operating system are you using?
macOS
Amplify Codegen Command
codegen models
Describe the bug
First of all flutter related!
When declaring enums in the schema.graphql that begin with a small letter e.g. enum kEventType { a b } than the code itsself for the enum will be generated correctly but not where its used. In the models that use the enum the 'k' is now 'K' wich leads into reference not found issues.
Expected behavior
You can declare enums with lowcase letter.
Reproduction steps
Already in bug description.
GraphQL schema(s)
# Put schemas below this line
Log output
# Put your logs below this line
Additional information
No response