Skip to content

Conversation

@sachindshinde
Copy link
Contributor

ArgValueOfAllowedTypeChecker#checkArgValueMatchesAllowedScalar() doesn't check the runtime wiring's wiring factory first when fetching scalar implementations, which can lead to it missing them. This PR updates the code to check it.

…alar() where it wouldn't check the wiring factory first for scalar implementations
Copy link
Member

@bbakerman bbakerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we would also have a test showing the wiring factory getting called

@bbakerman bbakerman added this to the 18.0 milestone Dec 20, 2021
@sachindshinde
Copy link
Contributor Author

@bbakerman Makes sense, added a test to SchemaTypeDirectivesCheckerTest.groovy.

@bbakerman bbakerman merged commit f993255 into graphql-java:master Dec 21, 2021
@bbakerman
Copy link
Member

Thank you for this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants