Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[generator] fix deserialization of enum values that have custom names #1516

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

dariuszkuc
Copy link
Collaborator

📝 Description

Enum value mapping logic was only using Kotlin/Java Enum value name. Updated logic to account for custom @GraphQLName values.

🔗 Related Issues

Resolves: #1496

Enum value mapping logic was only using Kotlin/Java Enum value name. Updated logic to account for custom `@GraphQLName` values.

Resolves: ExpediaGroup#1496
@dariuszkuc dariuszkuc added type: bug Something isn't working changes: patch Changes require a patch version module: generator Issue affects the schema generator and federation code labels Aug 14, 2022
@dariuszkuc dariuszkuc merged commit 051736c into ExpediaGroup:master Aug 15, 2022
@dariuszkuc dariuszkuc deleted the renamed_enums branch August 15, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version module: generator Issue affects the schema generator and federation code type: bug Something isn't working
Development

Successfully merging this pull request may close these issues.

Enum values with a custom name cannot be serialized when returning from a query or mutation
2 participants