graphql-go / graphql-go/graphql
Enums with trailing white space cause error.
Open
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 845
- PR merge metrics
- No merged PRs in 30d
Description
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.
```bash
Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "aborted " does not.
```
Contributor guide
Assessment
This issue has not been assessed yet.