Skip to content

Combine messages for minProperties/maxProperties #137

@jdesrosiers

Description

@jdesrosiers

The messages produced by the maxProperties and minProperties handlers can be collapsed.

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

This produces multiple messages that could be combined

  • Expected an object with no more than 2 properties
  • Expected an object with no more than 3 properties

This can be collapsed to

  • Expected an object with no more than 2 properties

No handlers need to be combined for this one, but the maxProperties and minProperties handlers will need to be updated to track the lowest/highest number of properties 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