From c92a50e4994870d0501282e0c2b9639515c6c79f Mon Sep 17 00:00:00 2001 From: Philip Graf Date: Tue, 9 Aug 2022 13:05:46 +0200 Subject: [PATCH] Fix typo in description of skip directive --- src/main/java/graphql/Directives.java | 2 +- src/test/groovy/graphql/Issue2141.groovy | 2 +- .../graphql/schema/idl/SchemaPrinterTest.groovy | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/graphql/Directives.java b/src/main/java/graphql/Directives.java index 87017ff305..7c993d071c 100644 --- a/src/main/java/graphql/Directives.java +++ b/src/main/java/graphql/Directives.java @@ -82,7 +82,7 @@ public class Directives { public static final GraphQLDirective SkipDirective = GraphQLDirective.newDirective() .name("skip") - .description("Directs the executor to skip this field or fragment when the `if`'argument is true.") + .description("Directs the executor to skip this field or fragment when the `if` argument is true.") .argument(newArgument() .name("if") .type(nonNull(GraphQLBoolean)) diff --git a/src/test/groovy/graphql/Issue2141.groovy b/src/test/groovy/graphql/Issue2141.groovy index 1ecbd0d177..145a984b95 100644 --- a/src/test/groovy/graphql/Issue2141.groovy +++ b/src/test/groovy/graphql/Issue2141.groovy @@ -36,7 +36,7 @@ directive @include( if: Boolean! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean! diff --git a/src/test/groovy/graphql/schema/idl/SchemaPrinterTest.groovy b/src/test/groovy/graphql/schema/idl/SchemaPrinterTest.groovy index c4ecfa72bf..5f7f6ce409 100644 --- a/src/test/groovy/graphql/schema/idl/SchemaPrinterTest.groovy +++ b/src/test/groovy/graphql/schema/idl/SchemaPrinterTest.groovy @@ -938,7 +938,7 @@ directive @single on OBJECT directive @singleField on FIELD_DEFINITION -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean! @@ -1079,7 +1079,7 @@ directive @include( if: Boolean! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean! @@ -1176,7 +1176,7 @@ directive @include( directive @moreComplex(arg1: String = "default", arg2: Int) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean! @@ -1241,7 +1241,7 @@ directive @include( directive @moreComplex(arg1: String = "default", arg2: Int) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean! @@ -1373,7 +1373,7 @@ directive @include( if: Boolean! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean! @@ -1875,7 +1875,7 @@ directive @include( if: Boolean! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean! @@ -2053,7 +2053,7 @@ directive @specifiedBy( url: String! ) on SCALAR -"Directs the executor to skip this field or fragment when the `if`'argument is true." +"Directs the executor to skip this field or fragment when the `if` argument is true." directive @skip( "Skipped when true." if: Boolean!