Skip to content

fix a crash when ordinary field behind discriminator has wrong format#11

Merged
maxlapshin merged 1 commit intoflussonic:masterfrom
stolen:fix-discriminator-crash
Jul 16, 2025
Merged

fix a crash when ordinary field behind discriminator has wrong format#11
maxlapshin merged 1 commit intoflussonic:masterfrom
stolen:fix-discriminator-crash

Conversation

@stolen
Copy link
Copy Markdown
Contributor

@stolen stolen commented Jul 16, 2025

Case:

  • input has no explicit discriminator, so code looks up default value
  • other input key has wrong type or format
  • crash with case clause error

Solution: when resolving default discriminator value, only discriminator field is passed for filling defaults, preventing interference from other keys on this stage.

@maxlapshin maxlapshin merged commit 3e6a228 into flussonic:master Jul 16, 2025
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.

2 participants