Skip to content

Forbid 'true', 'false' and 'null' as names for Enum value #812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2017

Conversation

IvanGoncharov
Copy link
Member

From spec:

EnumValue : Name but not true, false or null

+ Move one of test cases into proper location

@leebyron leebyron merged commit 5caf176 into graphql:master Apr 27, 2017
@leebyron
Copy link
Contributor

Awesome, thank you!

@smolinari
Copy link

Um, there is a small grammar mistake in the type definition.

Name "${valueName}" is can not be used for Enum value.

"is" is too much. It might also be better this way

Name "${valueName}" can not be used as an Enum value.

😄

Scott

IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this pull request Apr 28, 2017
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this pull request Apr 28, 2017
@IvanGoncharov
Copy link
Member Author

@smolinari Thank you. I created separate PR for grammar fix.

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

Successfully merging this pull request may close these issues.

4 participants