Open zirkelc opened 1 year ago
Hi @zirkelc, Thank you for raising this. After following the steps provided, I have been able to reproduce this issue and I fully concur with your observation that the error message displayed is not useful for the developers. Therefore, I will label this as a bug that needs further evaluation by the team.
I am also facing this issue. Any updates on this please?
How did you install the Amplify CLI?
npm install -g
If applicable, what version of Node.js are you using?
v18.14.1
Amplify CLI Version
11.0.2
What operating system are you using?
macOS
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
If the Schema contains an
input
type, all nested fields must also be defined asinput
types. That is the official GraphQL standard.This Schema is therefore invalid:
However, when this Amplify project is pushed, it fails with the following error:
This error is quite confusing, because it very difficult to figure out the actual issue. There is another seemingly unrelated issue: https://github.com/aws-amplify/amplify-category-api/issues/1040
Expected behavior
Validate Schema before deployment and show error message that Schema is invalid, for example:
Reproduction steps
NestedTestInput
type commented outamplify push -y
NestedTestInput
andnested
amplify push -y
Project Identifier
768325cc35028974c561f7d416d382b3
Log output
Additional information
No response
Before submitting, please confirm: