Skip to content

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

Merged
leebyron merged 1 commit intographql:masterfrom
IvanGoncharov:enumNames
Apr 27, 2017
Merged

Forbid 'true', 'false' and 'null' as names for Enum value#812
leebyron merged 1 commit intographql:masterfrom
IvanGoncharov:enumNames

Conversation

@IvanGoncharov
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Awesome, thank you!

@smolinari
Copy link
Copy Markdown

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
Copy Markdown
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