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

anyOf/oneOf option switches when entering value #4201

Open
4 tasks done
justin103508 opened this issue May 24, 2024 · 1 comment
Open
4 tasks done

anyOf/oneOf option switches when entering value #4201

justin103508 opened this issue May 24, 2024 · 1 comment
Labels
any-one-all-of Related to fixing anyOf, oneOf or allOf bug

Comments

@justin103508
Copy link

Prerequisites

What theme are you using?

core

Version

3.2.1

Current Behavior

Entering a value in the text field of Option 1 switches schema combination to Option 2. See playground link below.

Expected Behavior

Entering a value should not switch to Option 2

Steps To Reproduce

Playground link

Environment

- OS: macOS Ventura 13.1
- Node: 18.15.0
- npm: 9.5.0

Anything else?

Note: The bug does not occur when removing the "format" keyword or changing the "table" property to be unique within each subschema. Looks like it is an issue with getMatchingOption.

@justin103508 justin103508 added bug needs triage Initial label given, to be assigned correct labels and assigned labels May 24, 2024
@heath-freenome
Copy link
Member

heath-freenome commented May 31, 2024

@justin103508 As we are no longer supporting versions before 5.x please try upgrading first. That said, playing with the schema you provided in the playground shows that the bug exists. I'm guessing that there is a bug in the getMatchingOptions() function. Are you willing to fix this?

@heath-freenome heath-freenome added any-one-all-of Related to fixing anyOf, oneOf or allOf and removed needs triage Initial label given, to be assigned correct labels and assigned labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
any-one-all-of Related to fixing anyOf, oneOf or allOf bug
Projects
None yet
Development

No branches or pull requests

2 participants