Skip to content

Error: Enum values starting with underscore #4771

Closed

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The code generation fails on build when having enum values starting with an _ .

Steps to reproduce

Create an enum in your schema with values starting with _
enum MyEnum {
_1
_2
_3
_4
}

Relevant log output

`1` is not a valid GraphQL type name. (Parameter 'value')

Additional Context?

No response

Product

Strawberry Shake

Version

12.6.0

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions