Skip to content

Commit

Permalink
Fix enum parsing from variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr committed Mar 18, 2020
1 parent 603981c commit 242ac7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/scala/caliban/schema/ArgBuilder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ object ArgBuilder {

def dispatch[T](ctx: SealedTrait[ArgBuilder, T]): ArgBuilder[T] = input => {
(input match {
case EnumValue(value) => Some(value)
case _ => None
case EnumValue(value) => Some(value)
case StringValue(value) => Some(value)
case _ => None
}) match {
case Some(value) =>
ctx.subtypes
Expand Down

0 comments on commit 242ac7d

Please sign in to comment.