Skip to content

Conversation

@mentatbot
Copy link
Contributor

@mentatbot mentatbot bot commented Jul 28, 2025

This PR adds a Git patch file that addresses the grammar and punctuation issues identified in the validator's compatibility adjustments.

The patch fixes the following issues in the graphql-go repository:

  1. Fix grammar: "Location adjacent to a object definition." → "Location adjacent to an object type definition."
  2. Fix grammar: "If this server supports subscription" → "If this server support subscription" (to match graphql-js reference implementation)
  3. Add missing period to TypeKind enum description: "An enum describing what kind of type a given __Type is" → "An enum describing what kind of type a given __Type is."
  4. Remove extra space before newline in Directive description
  5. Update corresponding test expectations

Once this patch is applied to the graphql-go repository, the specific text normalization rules in the validator's normalizeStringFields function can be removed, reducing the need for ad-hoc compatibility adjustments.

The patch file graphql-go-grammar-fixes.patch can be applied using git apply or git am in the graphql-go repository.

Closes #61


🤖 This PR was created with Mentat. See my steps and cost here

  • Wake on any new activity.

This patch addresses the grammar and punctuation issues identified in the
validator compatibility adjustments:

1. Fix grammar: "a object definition" → "an object type definition"
2. Fix grammar: "supports subscription" → "support subscription" (to match graphql-js reference)
3. Add missing period to TypeKind enum description
4. Remove extra space before newline in Directive description
5. Update corresponding test expectations

The patch can be applied to the graphql-go repository to eliminate the need
for these specific compatibility adjustments in the validator.

Co-authored-by: chris-ramon <[email protected]>
@chris-ramon
Copy link
Member

Closed via: graphql-go/graphql#727.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

{validator}: Create upstream improvements.

2 participants