sangria-graphql/sangria
BLOCKING BUG: enum in case class fails with "Argument 'xyz' has invalid value: CNil"
开放
#528 创建于 2020年11月4日
help wanted
仓库指标
- 星标
- (1,961 个星标)
- PR 合并指标
- (平均合并 8天 15小时) (30 天内合并 4 个 PR)
描述
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