Open mnikolic10 opened 1 year ago
Hey @mnikolic10 :wave: thanks for raising this! I'm going to transfer this over to our API repo for better support 🙂
interface
and union
are not currently supported by Amplify Codegen.
interface
andunion
are not currently supported by Amplify Codegen.
Thanks for clarifying. Curious why i was able to previously run the command successfully with the same schema?
I'm not sure as to why it worked previously. The behavior of interface
and union
can be unpredictable because we do not test the functionality between releases.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v16.15.1
Amplify CLI Version
12.0.1
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
I initially had a failure when running amplify push, the cloudformation stack was stuck in update rollback state, so i resolved by manually continuing the rollback.
Describe the bug
When running
amplify codegen models
i receive an error"Unknown type Cuisine for field items. Did you forget to add the @model directive"
In the time i've spent debugging I can see the issue is coming from using Cuisine as a field within another type, see example snippet below:
Expected behavior
Would have expected this to compile correctly as it was previously working.
Reproduction steps
How can this bug be reproduced?
Will running the exact steps below in an empty directory create an Amplify project that demonstrates the bug behavior?
I believe this likely to be an individual issue within my environment but may be helpful if others encounter a similar issue
Screenshots can be provided in the issue body below.
Project Identifier
33607ffacefa5dabac82046c3bfc9645
Log output
Additional information
No response
Before submitting, please confirm: