Skip to content

Required bubble that appears when marking an array field as required warns of two errors instead of one #1684

@JacoboMoral

Description

@JacoboMoral

Describe the bug
Required bubble that appears when marking an array field as required warns of two errors instead of one.

To Reproduce
Use an empty object for data, use no uischema (autogenerated) and use the following schema object as an example:
schema: { properties: { test: { type: "array", items: { type: "object", properties: { "test1": { label: "test1", type: "string" }, "test2": { label: "test2", type: "string" }, "test3": { label: "test3", type: "string" } } } } }, required: ["test"], type: "object" }

Expected behavior
I expect there to be a bubble with a single error instead of 2.

Screenshots
image

Browser (please complete the following information):

  • Browser: Google Chrome
  • Version: 88.0.4324.96 (Official Build) (x86_64)

Used Setup (please complete the following information):

  • Framework: react
  • RendererSet: material

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions