From 30b47cd501db08b1d8a1ff2631320674e0771292 Mon Sep 17 00:00:00 2001 From: Robert Lemke Date: Tue, 5 Jan 2021 12:42:47 +0100 Subject: [PATCH] Fix parsing of resolverValidationOptions The resolverValidationOptions specified in Flow settings were not actually used and could only provided programmatically. --- Classes/Service/SchemaService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/Service/SchemaService.php b/Classes/Service/SchemaService.php index cafbfd7..09ec56b 100644 --- a/Classes/Service/SchemaService.php +++ b/Classes/Service/SchemaService.php @@ -171,7 +171,10 @@ protected function getMergedSchemaFromConfigurations(array $configuration): Sche 'typeDefs' => [], 'resolvers' => [], 'schemaDirectives' => [], - 'resolverValidationOptions' => ['allowResolversNotInSchema' => true], + 'resolverValidationOptions' => [ + 'allowResolversNotInSchema' => $configuration['resolverValidationOptions']['allowResolversNotInSchema'] ?? true, + 'requireResolversForResolveType' => $configuration['resolverValidationOptions']['requireResolversForResolveType'] ?? null, + ], ]; foreach ($schemaConfigurations as $schemaConfiguration) {