-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Checking enum values and returning an error if they are not valid during json.Unmarshal
is a breaking change. Specifically, json.Unmarshal
was not previously calling e.UnmarshalGQL(s)
, which contains the additional check for valid enum values.
The commit: eed4a10 (plugin/modelgen/models.gotpl
)
I understand the GraphQL spec requires enums to always contain valid values, and gqlgen is technically released under a 0.x.x
semantic version, so breaking changes may be released at any time. We were unfortunately relying on the non-spec-compliant behavior in our application.
Could I add a config option to gqlgen that optionally disables the enum value checks?
Metadata
Metadata
Assignees
Labels
No labels