better-ajv-errors icon indicating copy to clipboard operation
better-ajv-errors copied to clipboard

Make `unevaluatedProperties` error message as clear as `additionalProperties` message

Open plocket opened this issue 1 year ago • 0 comments

The additionalProperties error message names the additional property: Property arbitrary_key is not expected to be here.

The unevaluatedProperties error message doesn't: unevaluatedProperties must NOT have unevaluated properties. It also shows the wrong line number - it's the line for the containing object, not for the property itself.

Is it possible to make the second more like the first? It was a really useful message.

plocket avatar Dec 04 '23 20:12 plocket