Skip to content

Combine multipleOf messages #139

@jdesrosiers

Description

@jdesrosiers

The multipleOf error handler can combine multiple messages on the same location into one message.

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

This currently produces two messages

  • Expected a number that is a multiple of 3
  • Expected a number that is a multiple of 2

This can be combined into a single message

  • Expected a number that is a multiple of 6

This will require updating the multipleOf error handler to keep track of all multipleOf messages for a specific location and combining them to produce a single 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