Repository: graphql-go/graphql (2025-07-28T11:37:54Z)

Issue:
`{introspection}`: Grammar fixes.
#### Actual
Currently `introspection` pkg contains grammar miss-matches.

##### Required
We want to update the related strings so those match with `graphql-js` therefore compatibility can be achieve more precisely.

More details please refer to the following GitHub Comment: https://github.com/graphql-go/compatibility-standard-definitions/issues/61#issuecomment-3126537563.


Discussion:
If you would like me to solve this issue, either tag me in a comment or check this box:
- [ ] Solve Issue

<sub>You can disable automatic comments on my [settings page](https://mentat.ai/gh/graphql-go/graphql/settings)</sub>



Patch:
diff --git a/introspection.go b/introspection.go
index 51feb42d..31e802d7 100644
--- a/introspection.go
+++ b/introspection.go
@@ -59,7 +59,7 @@ func init() {
 
 	TypeKindEnumType = NewEnum(EnumConfig{
 		Name:        "__TypeKind",
-		Description: "An enum describing what kind of type a given `__Type` is",
+		Description: "An enum describing what kind of type a given `__Type` is.",
 		Values: EnumValueConfigMap{
 			"SCALAR": &EnumValueConfig{
 				Value:       TypeKindScalar,
@@ -146,7 +146,7 @@ func init() {
 			},
 			"OBJECT": &EnumValueConfig{
 				Value:       DirectiveLocationObject,
-				Description: "Location adjacent to a object definition.",
+				Description: "Location adjacent to an object type definition.",
 			},
 			"FIELD_DEFINITION": &EnumValueConfig{
 				Value:       DirectiveLocationFieldDefinition,
@@ -327,7 +327,7 @@ func init() {
 	DirectiveType = NewObject(ObjectConfig{
 		Name: "__Directive",
 		Description: "A Directive provides a way to describe alternate runtime execution and " +
-			"type validation behavior in a GraphQL document. " +
+			"type validation behavior in a GraphQL document." +
 			"\n\nIn some cases, you need to provide options to alter GraphQL's " +
 			"execution behavior in ways field arguments will not suffice, such as " +
 			"conditionally including or skipping a field. Directives provide this by " +
@@ -455,7 +455,7 @@ func init() {
 				},
 			},
 			"subscriptionType": &Field{
-				Description: `If this server supports subscription, the type that ` +
+				Description: `If this server support subscription, the type that ` +
 					`subscription operations will be rooted at.`,
 				Type: TypeType,
 				Resolve: func(p ResolveParams) (interface{}, error) {


Test patch:
diff --git a/introspection_test.go b/introspection_test.go
index c0e62bf1..735144c2 100644
--- a/introspection_test.go
+++ b/introspection_test.go
@@ -1371,7 +1371,7 @@ func TestIntrospection_ExposesDescriptionsOnTypesAndFields(t *testing.T) {
 					},
 					map[string]interface{}{
 						"name": "subscriptionType",
-						"description": "If this server supports subscription, the type that " +
+						"description": "If this server support subscription, the type that " +
 							"subscription operations will be rooted at.",
 					},
 					map[string]interface{}{
@@ -1422,7 +1422,7 @@ func TestIntrospection_ExposesDescriptionsOnEnums(t *testing.T) {
 		Data: map[string]interface{}{
 			"typeKindType": map[string]interface{}{
 				"name":        "__TypeKind",
-				"description": "An enum describing what kind of type a given `__Type` is",
+				"description": "An enum describing what kind of type a given `__Type` is.",
 				"enumValues": []interface{}{
 					map[string]interface{}{
 						"name":        "SCALAR",