-
Notifications
You must be signed in to change notification settings - Fork 226
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
BLOCKING BUG: enum in case class fails with "Argument 'xyz' has invalid value: CNil" #528
Comments
Hi @owetterau please provide a full sample of the code that is failing and hopefully someone can help you out! |
I have the exact same issue. Enum field in a case class input object cause this same error. Really anoying as I have no clue how to fix it except implementing a fromInput for all InputObject that use this enum. |
Unfortunately, this issue is still not resolved. Here is a short example of how to recreate the problem:
I am now using Sangria 3.0.0-RC7, Sangria-Circe 1.3.2 and Circe 0.14.1 |
@owetterau if you want to help, you could prepare a PR, at least one with the test case reproducing the issue? |
I have a case class which contains an enum for which I use
EnumType()
andderiveInputObjectType[]
to create the schema.Sangria shows an
Argument 'testEnum' has invalid value: CNil
when I send something like:If I use
testEnum
as a parameter of a mutation directly, everything works fine. It seems that this problem only appears when an enum is used as part of a case class.I am using Sangria 2.0.1, Circe 0.13.0 and Sangria-Circe 1.3.1
The text was updated successfully, but these errors were encountered: