graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Enums with trailing white space cause error.

Open jackstine opened this issue 2 years ago • 0 comments

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.

jackstine avatar May 19 '23 19:05 jackstine