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

oneOf nested objects/arrays with default values not using default values after changing between oneOf's #4476

Open
4 tasks done
nowifi4u opened this issue Jan 31, 2025 · 1 comment

Comments

@nowifi4u
Copy link

nowifi4u commented Jan 31, 2025

Prerequisites

What theme are you using?

core

Version

5.24.2

Current Behavior

Nested objects, arrays and arrays of objects in oneOf objects are not using default values set to them when changing to another oneOf object.

Expected Behavior

Default values should be applied to nested objects, arrays, arrays of objects when switching from one oneOf to another.

Steps To Reproduce

  1. Open this react-jsonschema-form playground link
  2. Change between different oneOf's (Test1, Test2, Test3)
  3. Fields arr, runner and runners should be updating when changing between the oneOf's

Environment

- OS: Windows 10, Ubuntu 20.04, 22.04, 24.04
- Node: 22.12.0, 20.12.2
- npm: 10.9.0

Anything else?

No response

@nowifi4u nowifi4u added bug needs triage Initial label given, to be assigned correct labels and assigned labels Jan 31, 2025
@heath-freenome heath-freenome added help wanted and removed needs triage Initial label given, to be assigned correct labels and assigned labels Feb 7, 2025
@heath-freenome
Copy link
Member

@nowifi4u Looking forward to seeing the fix you are working on for this

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

No branches or pull requests

2 participants