Skip to content

Commit fd79992

Browse files
authored
Merge pull request #727 from graphql-go/issue-726
`{introspection}`: grammar fixes.
2 parents f2a7e55 + f59020a commit fd79992

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

introspection.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func init() {
5959

6060
TypeKindEnumType = NewEnum(EnumConfig{
6161
Name: "__TypeKind",
62-
Description: "An enum describing what kind of type a given `__Type` is",
62+
Description: "An enum describing what kind of type a given `__Type` is.",
6363
Values: EnumValueConfigMap{
6464
"SCALAR": &EnumValueConfig{
6565
Value: TypeKindScalar,
@@ -146,7 +146,7 @@ func init() {
146146
},
147147
"OBJECT": &EnumValueConfig{
148148
Value: DirectiveLocationObject,
149-
Description: "Location adjacent to a object definition.",
149+
Description: "Location adjacent to an object type definition.",
150150
},
151151
"FIELD_DEFINITION": &EnumValueConfig{
152152
Value: DirectiveLocationFieldDefinition,
@@ -327,7 +327,7 @@ func init() {
327327
DirectiveType = NewObject(ObjectConfig{
328328
Name: "__Directive",
329329
Description: "A Directive provides a way to describe alternate runtime execution and " +
330-
"type validation behavior in a GraphQL document. " +
330+
"type validation behavior in a GraphQL document." +
331331
"\n\nIn some cases, you need to provide options to alter GraphQL's " +
332332
"execution behavior in ways field arguments will not suffice, such as " +
333333
"conditionally including or skipping a field. Directives provide this by " +
@@ -455,7 +455,7 @@ func init() {
455455
},
456456
},
457457
"subscriptionType": &Field{
458-
Description: `If this server supports subscription, the type that ` +
458+
Description: `If this server support subscription, the type that ` +
459459
`subscription operations will be rooted at.`,
460460
Type: TypeType,
461461
Resolve: func(p ResolveParams) (interface{}, error) {

introspection_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ func TestIntrospection_ExposesDescriptionsOnTypesAndFields(t *testing.T) {
13711371
},
13721372
map[string]interface{}{
13731373
"name": "subscriptionType",
1374-
"description": "If this server supports subscription, the type that " +
1374+
"description": "If this server support subscription, the type that " +
13751375
"subscription operations will be rooted at.",
13761376
},
13771377
map[string]interface{}{
@@ -1422,7 +1422,7 @@ func TestIntrospection_ExposesDescriptionsOnEnums(t *testing.T) {
14221422
Data: map[string]interface{}{
14231423
"typeKindType": map[string]interface{}{
14241424
"name": "__TypeKind",
1425-
"description": "An enum describing what kind of type a given `__Type` is",
1425+
"description": "An enum describing what kind of type a given `__Type` is.",
14261426
"enumValues": []interface{}{
14271427
map[string]interface{}{
14281428
"name": "SCALAR",

0 commit comments

Comments
 (0)