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

Error line number #79

Open
vishal-h opened this issue Aug 28, 2022 · 1 comment
Open

Error line number #79

vishal-h opened this issue Aug 28, 2022 · 1 comment

Comments

@vishal-h
Copy link

Is it possible to add the line number at which the error occurred? Is there a setting perhaps?

Something similar to https://www.jsonschemavalidator.net/. It highlights the line at which the error has occurred.

@jonasschmidt
Copy link
Owner

Phew, I don't have any idea how we could support that. The line number is the line in a JSON file, and this library doesn't even deal with files. It get the parsed JSON, so Elixir/Erlang terms. And I think the JSON library would have to support this somehow, it would have to annotate every piece of data with the line numbers it was read from, I don't know of any Elixir JSON parser that can do that. Also, in most cases the JSON doesn't even have lines when it comes from an API and has no line breaks.

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

2 participants