Skip to content

Proposal: Validate: rich error reporting #53

@utrack

Description

@utrack

Is your feature request related to a problem? Please describe.
When I validate the schema, I get an opaque error which I cannot action. As an example, I'd like to get a jsonpath to the offending node, so that I'd be able to present it to the user.

Describe the solution you'd like
Expose an Error/ValidationError/other struct which I would be able to cast the error to via errors.As() and get the JSONPath to the offending node of the document, as well as the JSONPath to the Schema node(s).

Getting a pointer to the exact Schema/object node would be the easiest way to inspect the nodes, but it has its own set of problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions