Skip to content

Generate fallback enum cases#213

Open
yonaskolb wants to merge 1 commit intomaticzav:mainfrom
yonaskolb:safe_enum_decoding
Open

Generate fallback enum cases#213
yonaskolb wants to merge 1 commit intomaticzav:mainfrom
yonaskolb:safe_enum_decoding

Conversation

@yonaskolb
Copy link
Copy Markdown
Contributor

@yonaskolb yonaskolb commented Apr 18, 2025

Problem
If new enum cases are added to graphs then older clients will fail to decode them, making the whole request fail.

Solution
This adds an optional new configuration option to specify a fallback enum case like unknown when the incoming case can't be found.
If the specified case already exists, it will just use that one and not generate a new case

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant