Skip to content

fix: preserve unknown enum values - #130

Draft
matoous wants to merge 1 commit into
mainfrom
md/open-enums
Draft

matoous wants to merge 1 commit into
mainfrom
md/open-enums

Conversation

@matoous

@matoous matoous commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Transactions containing new card types such as BANCOMAT or SUMUP currently fail enum hydration. Generate properties that accept either the enum or its backing scalar, and preserve unknown values unchanged while continuing to hydrate known values into enum cases.

Regenerates the models and covers transaction reads, enum arrays, and request encoding.

Fixes #127.

@matoous matoous self-assigned this Oct 15, 2026
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.

[Bug]: Transactions::get() throws ValueError for card type BANCOMAT

1 participant