Skip to content

Combine type error messages #133

@jdesrosiers

Description

@jdesrosiers

Currently, if you have multiple type keywords apply to a single location, you'll get multiple error messages. For example,

{
  "allOf": [
    { "type": ["string", "boolean", "number"] },
    { "type": ["string", "number"] },
    { "type": "string" }
  ]
}

The user will get,

  • Expected a string, boolean, or number
  • Expected a string or number
  • Expected a string

This is mostly noise for the user. All they need to see is,

  • Expected a string

This task is to update the type error handler to collapse all type errors into a single message.

Metadata

Metadata

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