Skip to content

fix: prevent OneOf.options()from emitting phantom pairs#2897

Open
JaeHyuckSa wants to merge 1 commit intomarshmallow-code:devfrom
JaeHyuckSa:fix-oneof-options-2869
Open

fix: prevent OneOf.options()from emitting phantom pairs#2897
JaeHyuckSa wants to merge 1 commit intomarshmallow-code:devfrom
JaeHyuckSa:fix-oneof-options-2869

Conversation

@JaeHyuckSa
Copy link

@JaeHyuckSa JaeHyuckSa commented Feb 7, 2026

Description

Replaced it with zip bounded by the number of choices, added a warning when labels exceed choices, and included the related test coverage.

Related Issue

Fix: #2869

Signed-off-by: JaeHyuck Sa <wogur981208@gmail.com>
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.

OneOf.options() emits extra pairs when labels outnumber choices

1 participant