Skip to content
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

Enums with trailing white space cause error. #668

Open
jackstine opened this issue May 19, 2023 · 0 comments
Open

Enums with trailing white space cause error. #668

jackstine opened this issue May 19, 2023 · 0 comments

Comments

@jackstine
Copy link

jackstine commented May 19, 2023

If the enum is "aborted " this will cause an error. "aborted" is the accepted value. Would like to enhance so that trailing white spaces are allowed, if possible.

When calling the schema, err := graphql.NewSchema(schemaConfig) enums that have a trailing white space cause error.

Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "aborted " does not.
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

No branches or pull requests

1 participant