Skip to content

Required properties is not working with checkboxes of multiple check #4668

@hank619

Description

@hank619

Prerequisites

What theme are you using?

core

Version

6.0.0-beta.7

Current Behavior

When click submit, if user has not check any choise, can show error message for user

Expected Behavior

When click submit, no error message is shown

Steps To Reproduce

JSON schema

{
  "type": "object",
  "properties": {
    "hobby": {
      "type": "array",
      "title": "A multiple choices list",
      "items": {
        "type": "string",
        "enum": [
          "foo",
          "bar",
          "fuzz",
          "qux"
        ]
      },
      "uniqueItems": true
    }
  },
  "required": [
    "hobby"
  ]
}

UI schema:

"hobby": {
    "ui:widget": "checkboxes"
  }

Environment

- OS:
- Node:
- npm:

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