Skip to content

Specification For Error Generation #1396

@sinclairzx81

Description

@sinclairzx81

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions