Skip to content

anyOf with type boolean doesn't work #4902

@abdalla-rko

Description

@abdalla-rko

Prerequisites

What theme are you using?

core

Version

6.1.2

Current Behavior

Schema with an anyOf array with a nested object with type boolean doesn’t work properly. Selecting the boolean option in the anyOf field sets the anyOfField value to 1 instead of true in formData.

Expected Behavior

Selecting the boolean option in the anyOf Field should work and the anyOfField value should be a boolean (true/false).

Steps To Reproduce

  1. Click here to open the playground demo.
  2. Select the boolean option in the anyOf Field.
  3. Notice that you can’t select it and anyOfField formData becomes 1 instead of true.

Environment

- OS:
- Node:
- npm:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions