Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Require non-empty directive locations#4100

Merged
benjie merged 1 commit into
graphql:maingraphql/graphql-js:mainfrom
jbellenger:jbellenger-require-directive-locationsjbellenger/graphql-js:jbellenger-require-directive-locationsCopy head branch name to clipboard
Jun 21, 2024
Merged

Require non-empty directive locations#4100
benjie merged 1 commit into
graphql:maingraphql/graphql-js:mainfrom
jbellenger:jbellenger-require-directive-locationsjbellenger/graphql-js:jbellenger-require-directive-locationsCopy head branch name to clipboard

Conversation

@jbellenger

@jbellenger jbellenger commented Jun 2, 2024

Copy link
Copy Markdown
Contributor

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.

@netlify

netlify Bot commented Jun 2, 2024

Copy link
Copy Markdown

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

@benjie benjie left a comment

Copy link
Copy Markdown
Member

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!

@github-actions

Copy link
Copy Markdown

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 <github@james.bellenger.org>
Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.