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

Request: Line Numbers for Errors #2

Closed
abgier-avraha opened this issue Dec 24, 2018 · 2 comments
Closed

Request: Line Numbers for Errors #2

abgier-avraha opened this issue Dec 24, 2018 · 2 comments

Comments

@abgier-avraha
Copy link

I'll get an error like error "" parameter "" must follow the SnakeCase naming convention and I understand that the errors are printed out sequentially but it would be helpful to just include the line number where the error originates.

@Place1
Copy link
Owner

Place1 commented Dec 26, 2018

yep i'm planning to add this feature. currently it's a little difficult because the implementation is basically just checking rules against an in memory object (the spec) which is created by unmarshalling the raw json/yaml spec file. Currently this unmarshalling doesn't leave me with any file markers to indicate start/end positions for keys/properties in the object (spec). I'm searching for a solution though 😄

@Place1
Copy link
Owner

Place1 commented Dec 27, 2018

@rmit-s3539777-abgier-avraha i've addressed this issue in v0.0.4 by making sure each error includes a json ref to the relevant part of the spec. the errors are sorted by this ref in the output as well.

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