Skip to content

Conversation

@jord1e
Copy link
Contributor

@jord1e jord1e commented Dec 19, 2021

Fixes #2649

Represented as |opt in the GraphQL specification

Link to union tests in graphql-js: https://github.com/graphql/graphql-js/blob/3ab82f4981970f50dd3a96e22a11839e4ec5bb7b/src/language/__tests__/schema-parser-test.ts#L892-L962

Spec blame: https://github.com/graphql/graphql-spec/blame/c18590c477d6817d73e19b6c248c9fcc62b03017/spec/Appendix%20B%20--%20Grammar%20Summary.md#L327

graphql-js does not seem to provide directive tests for this specific circumstance (I should really open a PR over there)

@bbakerman bbakerman added this to the 18.0 milestone Dec 20, 2021
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.

Thanks very much for this PR.

@bbakerman bbakerman merged commit 4a82b0b into graphql-java:master Dec 20, 2021
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.

ANTLR grammar doesn't match GraphQL spec for directive locations

3 participants