Skip to content

Commit

Permalink
Merge pull request #32 from robertlemke/bugfix/resolver-validation-op…
Browse files Browse the repository at this point in the history
…tions

Fix parsing of resolverValidationOptions
  • Loading branch information
johannessteu authored Jan 6, 2021
2 parents ea0fde5 + 30b47cd commit 6bf5d8d
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 6bf5d8d

Please sign in to comment.