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

Validate @deprecated directive must not appear on required arguments or input object field definitions #3590

Closed
dondonz opened this issue May 8, 2024 · 0 comments · Fixed by #3591

Comments

@dondonz
Copy link
Member

dondonz commented May 8, 2024

There's a validation rule to implement for the @deprecated directive. How exciting.

From the GraphQL specification:

The @deprecated directive must not appear on required (non-null without a default) arguments or input object field definitions.

Here's a link to the spec PR: graphql/graphql-spec#805

We previously enabled @deprecated for input fields and arguments in this PR: #2186. This issue is for implementing the validation rule only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant