-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL API change failed due to blank comment #173
Comments
Hey @kylekirkby 👋 thanks for raising this! I was able to successfully reproduce with the steps provided, and I agree that the validation could be executed during Sample GraphQL schema used for reproduction: type Todo @model {
"""
"""
id: ID!
"""
name the todo
"""
name: String!
"""
describe the todo
"""
description: String
} |
Hey @kylekirkby after further review this appears to be better suited as a feature-request for the validation. Please note GraphQL descriptions have an active issue in the AppSync community and another, relevant issue in this repo for GraphQL comments and descriptions. \cc @renebrandel for bug triage visibility |
@kylekirkby Thanks for logging this, I came across this earlier and had spent a good amount of time trying to understand why my schema deployment was failing ( with a non-helpful Cloudformation error ). Blank comment was the issue. Hopefully it can be patched. |
I'm closing this from the Amplify end as the tracking ticket as this requires changes on the AppSync service. (Tracked in the ticket above) |
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
15.7
Amplify CLI Version
5.0.1
What operating system are you using?
Windows 10 / Ubuntu 20.04 WSL
Amplify Categories
api
Amplify Commands
push
Describe the bug
I'd recently made some updates to my schema.graphql file but failed to fill in a comment for a field. E.g
Running
amplify api gql-compile
returned a succesful compilation, but upon pushing the changes, the stack failed in Cloudformation with:Updating the schema.graphql file with a valid comment fixed the issue.
Expected behavior
Validate for blank comments on compilation of the GraphQL schema.
Reproduction steps
amplify api gql-compile
to check the schema is valid (which it isn't according to AppSync.GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: