Skip to content

Array defaults don't work at the root of the schema. #4335

@abdalla-rko

Description

@abdalla-rko

Prerequisites

What theme are you using?

core

Version

5.21.2

Current Behavior

Array defaults don't work at the root of the schema.

Expected Behavior

Array defaults should work at the root of the schema and not only when it's nested.

Steps To Reproduce

  1. Click here open the demo with array at the root of the schema
  2. You'll notice that defaults are not applied.
  3. Click here to open the demo with nested array.
  4. You'll notice that defaults are applied when the array is nested and not at the root of the schema.

Environment

- OS: macOS
- Node: 22.1.0
- npm: 10.7.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions