-
Notifications
You must be signed in to change notification settings - Fork 28
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
Inconsistent JSON output on errors #482
Comments
That's an excellent point 👍 I'll take a look at how OPA does this, as ideally we'd provide the same JSON error output as OPA does for errors that originate in OPA (like the parser error above). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
Let's say we have file test.rego with following content,
Running
regal
with JSON formatregal lint --format json test.rego
- the successful output will beLet's introduce a syntax error into
test.rego
, so it becomesRunning
regal
with JSON format once again gives inconsistent outputThe inconsistency is that error format is not JSON.
It makes a difficulty when creating Editor/IDE plugin that tries to parse JSON for the list of error.
Since in this case there's no JSON and error has no predefined format.
The text was updated successfully, but these errors were encountered: