-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Illegal enum values #2207
Comments
This is an issue on https://github.com/vektah/gqlparser, and has been fixed with the following PR: |
@romshark can you please verify? |
@ameyarao98 thanks. |
I've upgraded the reproduction example to master (53ca207) but |
@romshark
and then run the generation |
What happened?
Illegal enum values are accepted during code generation.
When you run the server and open the playground it says:
What did you expect?
I expect
go run github.com/99designs/gqlgen
to return an error when reading the schema file and encounteringtrue
,false
ornull
in enum values according to the spec of October 2021.Minimal graphql.schema and models to reproduce
https://github.com/romshark/gqlgen-2207-reproduction
versions
go run github.com/99designs/gqlgen version
:v0.17.7
go version
:go1.18.2 darwin/arm64
The text was updated successfully, but these errors were encountered: