sangria-graphql/sangria
BLOCKING BUG: enum in case class fails with "Argument 'xyz' has invalid value: CNil"
Aperta
#528 aperta il 4 nov 2020
help wanted
Metriche repository
- Star
- (1961 stelle)
- Metriche merge PR
- (Merge medio 8g 15h) (4 PR mergiate in 30 g)
Descrizione
I have a case class which contains an enum for which I use EnumType()and deriveInputObjectType[] to create the schema.
Sangria shows an Argument 'testEnum' has invalid value: CNil when I send something like:
MethodCall(testCaseClass: {
name: "just a name",
testEnum: FIRST
}) {
result
}
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