Skip to content

Ability to control how verbose the JsonPointerException is #51

@shaybensasson

Description

@shaybensasson

Hi,
Love this library.

I'm using it for JsonPointing to an element inside a JSON schema. My schema files could be ~10k lines.
When a member is not found, this line formats (and dumps) the entire doc inside the message via this line:

raise JsonPointerException("member '%s' not found in %s" % (part, doc))

It would be wonderful to control the dumping of the doc to the exception message (e.g. Enabled by default, Disabled otherwise - in this case just the member is formatted).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions