Skip to content

Conversation

@tKe
Copy link
Contributor

@tKe tKe commented May 12, 2025

📝 Description

Attempting to output an enum value with a custom @GraphQLName annotation will currently result in something like:

SerializationError{path=[enumOutputs, 3], exception=graphql.schema.CoercingSerializeException: Invalid input for enum 'MyTestEnum'. Unknown value 'FOUR'}

This PR changes the GraphQLEnumValueDefinition value to be the enum entry itself rather than the graphql name, which allows graphql-java to correctly resolve the name from the definition.

🔗 Related Issues

@tKe tKe force-pushed the fix/enum-value-in-GraphQLEnumValueDefinition branch from 4f07846 to 10cc3ea Compare May 12, 2025 15:26
@Samjin Samjin merged commit e3b74bf into ExpediaGroup:master Jun 3, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants