Skip to content

Commit

Permalink
Fix parsing of resolverValidationOptions
Browse files Browse the repository at this point in the history
The resolverValidationOptions specified in Flow settings were not
actually used and could only provided programmatically.
  • Loading branch information
robertlemke committed Jan 5, 2021
1 parent ea0fde5 commit 30b47cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/Service/SchemaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30b47cd

Please sign in to comment.