Skip to content

"unevaluatedItems" and single-schema "items" #291

Closed
@handrews

Description

@handrews

unevaluatedItems should apply if there is a single-schema items which fails to apply. Conversely, unevaluatedItems should be ignored if a single-schema items applies successfully.

Given the following:

{
  "unevaluatedItems": {"type": "boolean"},
  "anyOf": [
    {
      "items": {"type": "string"}
    },
    true
  ]
}
  • [true, false] should pass
  • ["yes", "no"] should pass
  • ["yes", false] should fail

Metadata

Metadata

Assignees

Labels

missing testA request to add a test to the suite that is currently not covered elsewhere.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions