Skip to content

Commit 68c01ec

Browse files
author
Dariusz Kuc
authored
update @deprecated definition description (graphql-java#2510)
Updating `@deprecated` definition description to match directive description.
1 parent d7a82eb commit 68c01ec

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/main/java/graphql/Directives.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class Directives {
4444
.directiveLocation(newDirectiveLocation().name(ENUM_VALUE.name()).build())
4545
.directiveLocation(newDirectiveLocation().name(ARGUMENT_DEFINITION.name()).build())
4646
.directiveLocation(newDirectiveLocation().name(INPUT_FIELD_DEFINITION.name()).build())
47-
.description(createDescription("Marks the field or enum value as deprecated"))
47+
.description(createDescription("Marks the field, argument, input field or enum value as deprecated"))
4848
.inputValueDefinition(
4949
newInputValueDefinition()
5050
.name("reason")

src/test/groovy/graphql/Issue2141.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ directive @skip(
3636
3737
directive @auth(roles: [String!]) on FIELD_DEFINITION
3838
39-
"Marks the field or enum value as deprecated"
39+
"Marks the field, argument, input field or enum value as deprecated"
4040
directive @deprecated(
4141
"The reason for the deprecation"
4242
reason: String = "No longer supported"

src/test/groovy/graphql/schema/idl/SchemaPrinterTest.groovy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ directive @scalarDirective on SCALAR
939939
940940
directive @repeatableDirective repeatable on SCALAR
941941
942-
"Marks the field or enum value as deprecated"
942+
"Marks the field, argument, input field or enum value as deprecated"
943943
directive @deprecated(
944944
"The reason for the deprecation"
945945
reason: String = "No longer supported"
@@ -1078,7 +1078,7 @@ directive @skip(
10781078
if: Boolean!
10791079
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
10801080
1081-
"Marks the field or enum value as deprecated"
1081+
"Marks the field, argument, input field or enum value as deprecated"
10821082
directive @deprecated(
10831083
"The reason for the deprecation"
10841084
reason: String = "No longer supported"
@@ -1175,7 +1175,7 @@ directive @example on FIELD_DEFINITION
11751175
11761176
directive @moreComplex(arg1: String = "default", arg2: Int) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
11771177
1178-
"Marks the field or enum value as deprecated"
1178+
"Marks the field, argument, input field or enum value as deprecated"
11791179
directive @deprecated(
11801180
"The reason for the deprecation"
11811181
reason: String = "No longer supported"
@@ -1240,7 +1240,7 @@ directive @example on FIELD_DEFINITION
12401240
12411241
directive @moreComplex(arg1: String = "default", arg2: Int) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
12421242
1243-
"Marks the field or enum value as deprecated"
1243+
"Marks the field, argument, input field or enum value as deprecated"
12441244
directive @deprecated(
12451245
"The reason for the deprecation"
12461246
reason: String = "No longer supported"
@@ -1372,7 +1372,7 @@ directive @skip(
13721372
13731373
directive @directive1 on SCALAR
13741374
1375-
"Marks the field or enum value as deprecated"
1375+
"Marks the field, argument, input field or enum value as deprecated"
13761376
directive @deprecated(
13771377
"The reason for the deprecation"
13781378
reason: String = "No longer supported"
@@ -1875,7 +1875,7 @@ directive @skip(
18751875
18761876
directive @foo on SCHEMA
18771877
1878-
"Marks the field or enum value as deprecated"
1878+
"Marks the field, argument, input field or enum value as deprecated"
18791879
directive @deprecated(
18801880
"The reason for the deprecation"
18811881
reason: String = "No longer supported"

0 commit comments

Comments
 (0)