Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/graphql/Directives.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Directives {
.directiveLocation(newDirectiveLocation().name(ENUM_VALUE.name()).build())
.directiveLocation(newDirectiveLocation().name(ARGUMENT_DEFINITION.name()).build())
.directiveLocation(newDirectiveLocation().name(INPUT_FIELD_DEFINITION.name()).build())
.description(createDescription("Marks the field or enum value as deprecated"))
.description(createDescription("Marks the field, argument, input field or enum value as deprecated"))
.inputValueDefinition(
newInputValueDefinition()
.name("reason")
Expand Down
2 changes: 1 addition & 1 deletion src/test/groovy/graphql/Issue2141.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ directive @skip(

directive @auth(roles: [String!]) on FIELD_DEFINITION

"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down
12 changes: 6 additions & 6 deletions src/test/groovy/graphql/schema/idl/SchemaPrinterTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ directive @scalarDirective on SCALAR

directive @repeatableDirective repeatable on SCALAR

"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down Expand Up @@ -1078,7 +1078,7 @@ directive @skip(
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT

"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down Expand Up @@ -1175,7 +1175,7 @@ directive @example on FIELD_DEFINITION

directive @moreComplex(arg1: String = "default", arg2: Int) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION

"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down Expand Up @@ -1240,7 +1240,7 @@ directive @example on FIELD_DEFINITION

directive @moreComplex(arg1: String = "default", arg2: Int) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION

"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down Expand Up @@ -1372,7 +1372,7 @@ directive @skip(

directive @directive1 on SCALAR

"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down Expand Up @@ -1875,7 +1875,7 @@ directive @skip(

directive @foo on SCHEMA

"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down