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