Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to control how verbose the JsonPointerException is #51

Open
shaybensasson opened this issue Jun 6, 2022 · 0 comments
Open

Ability to control how verbose the JsonPointerException is #51

shaybensasson opened this issue Jun 6, 2022 · 0 comments

Comments

@shaybensasson
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant