Skip to content

Validation errors are too verbose #20

@findleyr

Description

@findleyr

While investigating certain validation errors for the Go SDK, I noticed that they're rather verbose, which is undesirable for both human and LLM consumption. For example:

"validating\n\t\u0026map[]\nagainst\n\t {"type":"object","required":["In"],"properties":{"In":{"type":"string","description":"the input"}},"additionalProperties":false}:\n validating root: required: missing properties: ["In"]"

This is just saying that the input is missing required property "In", but it's obscured by printing the input and the schema.

We should simplify these errors, or provide an error API to access the inner error.

CC @jba @samthanawalla @mazas-google

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions