Skip to content

Apply nested const defaults through conditional allOf schemas#5132

Merged
heath-freenome merged 2 commits into
rjsf-team:mainfrom
morgan-coded:fix/4963-nested-const-defaults
Jun 26, 2026
Merged

Apply nested const defaults through conditional allOf schemas#5132
heath-freenome merged 2 commits into
rjsf-team:mainfrom
morgan-coded:fix/4963-nested-const-defaults

Conversation

@morgan-coded

Copy link
Copy Markdown
Contributor

Nested constAsDefaults: "always" values could be missed when the matching schema came through a conditional allOf.
Default form-state matching now resolves the conditional schema and uses the matched form data when applying nested object defaults. I checked the red-to-green regression, 693 focused utility tests, cs-check, lint, the full suite with 1,404 passing and 100% coverage, and build:ts.
Fixes #4963

Copilot AI review requested due to automatic review settings June 23, 2026 05:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread CHANGELOG.md Outdated
@morgan-coded morgan-coded force-pushed the fix/4963-nested-const-defaults branch from 61c1288 to bbf0006 Compare June 23, 2026 21:55
@heath-freenome heath-freenome merged commit 69b450b into rjsf-team:main Jun 26, 2026
5 checks passed
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 + const is handled differently when nested in a property vs as a root object property

3 participants