From d477dfc1a838fda3dcc504507caf6eacbbeb1102 Mon Sep 17 00:00:00 2001 From: Portey Vasil Date: Fri, 22 Jan 2016 16:06:11 +0200 Subject: [PATCH] Fix ListType item validation to accept InputObjectType --- src/Validator/ConfigValidator/Rules/TypeValidationRule.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Validator/ConfigValidator/Rules/TypeValidationRule.php b/src/Validator/ConfigValidator/Rules/TypeValidationRule.php index 5810328a..d6bf5659 100644 --- a/src/Validator/ConfigValidator/Rules/TypeValidationRule.php +++ b/src/Validator/ConfigValidator/Rules/TypeValidationRule.php @@ -48,7 +48,8 @@ public function validate($data, $ruleInfo) || $data instanceof AbstractInterfaceType || $data instanceof AbstractUnionType || $data instanceof AbstractEnumType - || $data instanceof AbstractScalarType; + || $data instanceof AbstractScalarType + || $data instanceof AbstractInputObjectType; case TypeMap::TYPE_OBJECT_INPUT_TYPE: return $data instanceof AbstractInputObjectType; @@ -174,4 +175,4 @@ private function isInputField($data, $name = null) return false; } -} \ No newline at end of file +}