Skip to content

Conversation

jbellenger
Copy link
Contributor

@jbellenger jbellenger commented Jun 2, 2024

A proposed spec edit clarifies a requirement that was always true but was slightly buried: directive definitions must include 1 or more locations.

This PR adds explicit validation to graphql-js around non-empty directive locations. Similar work was landed in graphql-java.

I'll add that I haven't contributed to graphql-js before and am not familiar with typescript or the mores of graphql-js. I've tried to follow existing patterns but would appreciate any feedback offered.

Copy link

netlify bot commented Jun 2, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 6160b4d
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/665cc53c2ab985000819cde6
😎 Deploy Preview https://deploy-preview-4100--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jbellenger jbellenger marked this pull request as ready for review June 2, 2024 19:20
Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me; thanks!

Copy link

Hi @jbellenger, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@benjie benjie changed the title require non-empty directive locations Require non-empty directive locations Jun 21, 2024
@benjie benjie merged commit 36e59f4 into graphql:main Jun 21, 2024
@benjie benjie added the PR: bug fix 🐞 requires increase of "patch" version number label Jun 21, 2024
benjie pushed a commit that referenced this pull request Jul 1, 2024
benjie pushed a commit that referenced this pull request Jul 1, 2024
benjie pushed a commit that referenced this pull request Jul 1, 2024
benjie added a commit that referenced this pull request Sep 18, 2024
Co-authored-by: James Bellenger <[email protected]>
Co-authored-by: Saihajpreet Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants