Skip to content

Commit

Permalink
Fix validation for input scalars (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr authored Feb 25, 2020
1 parent e753123 commit 37c990d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/caliban/validation/Validator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ object Validator {
val inputType = if (t.kind == __TypeKind.NON_NULL) t.ofType.getOrElse(t) else t
val inputFields = inputType.inputFields.getOrElse(Nil)
argValue match {
case InputValue.ObjectValue(fields) =>
case InputValue.ObjectValue(fields) if inputType.kind == __TypeKind.INPUT_OBJECT =>
IO.foreach(fields) {
case (k, v) =>
inputFields.find(_.name == k) match {
Expand Down

0 comments on commit 37c990d

Please sign in to comment.