-
-
Notifications
You must be signed in to change notification settings - Fork 365
Description
Hi,
I'm just writing to ask if there is a specification (or guideline) for how JSON Schema validators should correctly handle validation error generation?
I am imagining a specification of this kind might specify a JSON Error structure (as JSON schema), and define a standard assertion order (for example, a validator should yield property required errors before additionalProperties: false errors) with assertion order tied to error generation order. A specification might also define a recommendation for handling anyOf type errors (which can generate large sequences of errors); it might also define a set of information encoded in the JSON Error structure to allow consumers to filter excessive error noise (common with anyOf errors with many sub variant schemas)
Are there any considerations for this? I note different validators implement error generation and reporting in a number of different ways, so just curious if there is a recommended assertion/generation order recommended by spec contributors.
Thanks!
S
Metadata
Metadata
Assignees
Labels
Type
Projects
Status