Skip to content

Error: Enum values starting with underscore #4771

@ChristoBoshoff

Description

@ChristoBoshoff

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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions