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

Show line numbers #680

Closed
abitrolly opened this issue Dec 22, 2021 · 4 comments
Closed

Show line numbers #680

abitrolly opened this issue Dec 22, 2021 · 4 comments

Comments

@abitrolly
Copy link

Does this lib allows to show the line number in original file where the validation fails? I don't see it is possible from examples.

The problem originally appeared here - composer/composer#10380 (comment)

@erayd
Copy link
Contributor

erayd commented Dec 22, 2021 via email

@abitrolly
Copy link
Author

Thanks for the answer. Is that error path a valid JSONPath? Something that could be used in library such as https://github.com/maxsivanov/json-line-number

@DannyvdSluijs
Copy link
Collaborator

@abitrolly adding errors can be found here in code.
As you can see an error is an array containing named keys such as pointer and property which seem to be good candidates to checkout. Probably best to start with the property one as that seems to call a function called convertJsonPointerIntoPropertyPath

If this answers your questions (or maybe we are too late in answering them) would you close the issue in an attempt te revive the project and get a better overview of what still is pending?

@abitrolly
Copy link
Author

I don't remember te details now. Closing.

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

3 participants