Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support graphql-java schema lint #2522

Open
chenrui333 opened this issue Aug 23, 2024 · 0 comments
Open

Support graphql-java schema lint #2522

chenrui333 opened this issue Aug 23, 2024 · 0 comments

Comments

@chenrui333
Copy link

chenrui333 commented Aug 23, 2024

Is your feature request related to a problem? Please describe.

I hava a graphql-js implementation calling graphql-java, while I was trying to deprecate some field in a fragment, I ran into the validation error, I wonder if there is a way to catch that with this tool.

https://www.graphql-java.com/documentation/sdl-directives#declaring-directives

Describe the solution you'd like

Support linting for deprecated directive locations

Describe alternatives you've considered

n/a

Additional context

Error message

Validation error (MisplacedDirective@[xx/xx]) : Directive \'deprecated\' not allowed here\n\nPath: xx/xx/xx."	

I can see this is a problem btw the different graphql implementations.

image

relates to graphql-java/graphql-java#3694

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

No branches or pull requests

1 participant