Skip to content

Errors on schema validation should print full path to invalid field #57

Open
@andrewsardone

Description

@andrewsardone

If I receive the following validation error:

class mismatch for id: expected [<type 'str'>, <type 'unicode'>], 1 has class int

I'm not sure where in my document its referring to the id field. It'd be great if the output indicated, say, the full JSON path of the field (e.g., certificate.parsed.certificate_policies.id)

I could be using the tool incorrectly, so bear with me 😄

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions