Skip to content

Combine messages for maxItems/minItems #136

@jdesrosiers

Description

@jdesrosiers

The messages produced by the maxItems and minItems handlers can be collapsed.

{
  "allOf": [
    { "maxItems": 2 },
    { "maxItems": 3 }
  ]
}

This produces multiple messages that could be combined

  • Expected an array with no more than 2 items
  • Expected an array with no more than 3 items

This can be collapsed to

  • Expected an array with no more than 2 items

No handlers need to be combined for this one, but the maxItems and minItems handlers will need to be updated to track the lowest/highest number of items allowed/required so it produces only one message.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions