Skip to content

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

Closed

Description

@dondonz

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions