Skip to content

Invalid constraints validation in sub-object with omitExtraData option #5142

Description

@slafon51

Prerequisites

What theme are you using?

other

Version

6.6.2

Current Behavior

Hello,

Since version 6.6.X (this bug doesn't occur in version 6.5.3), I have noticed that when a object is defined within an "allOf" containing multiple "If-Then-Else" conditions and the omitExtraData option is active, the required constraints associated with the object's fields consistently generate an error, even when the fields are filled in.

Expected Behavior

The required constraints defined the "allOf" / "If-Then-Else" should not generate an error when the fields are filled in.

Steps To Reproduce

  1. Go to the playground shared link : link.
  2. Select the option "with required" in the field "prop1".
  3. Fill the fields "subprop1" and "subprop2" with any value.
  4. Submit the form => the submission is successful.
  5. Check the "Omit extra data" option (on the right panel).
  6. Submit the form => the submission fails.

Environment

- OS: Windows 11
- Node: 22.14
- npm: 10.9.2

Anything else?

No response

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions