-
Notifications
You must be signed in to change notification settings - Fork 660
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
'type' is a reserved enum value name #4293
Comments
Hi @RoryO 👋 Thanks for sending this!
IIRC, v3 has always used
Indeed. You can use the below
New directives such as Hope this helps? |
Thank you for looking at this. That is good insight of working around the issue internally instead of directing someone to do something undocumented. I will continue to use 3.2 until this is resolved. |
@martinbonnin Yeah this looks good to me 👍 It's good to have |
Hi @RoryO 3.5.0 now automatically escapes |
3.5.0 compiles with the same schema without any issues now. |
Thanks for the update! |
Summary
When using a schema that has a
type
field in an enum, the compiler fails at the taskgenerateServiceApolloSources
. The last Apollo Kotlin release I used prior to upgrading 3.2.0, and this definition worked fine with that version.It looks like there was something similar or identical in #4023, and was possibly fixed in 3.3.1. This seems like a regression to direct someone to using an experimental feature of overriding schema definitions as suggested in the PR and in the error message.
Version
3.4.0
Logs
Steps to reproduce the behavior
Using this exact schema definition, the compiler errors on the
type
fieldThe text was updated successfully, but these errors were encountered: