Closed mazumba-nx closed 6 months ago
After thinking "maybe I can resolve this and create a PR" I found, that the correct parameter is warn
and not warning
. So no Bug here!
This is not clear from the documentation though. https://quobix.com/vacuum/commands/lint/
Could you include the three possibilities error
, warn
and info
to the list?
+1 :) this echoes https://github.com/daveshanley/vacuum/issues/367#issuecomment-1816071341
A new version
command is available in v0.6.0
https://quobix.com/vacuum/commands/version/
Also the docs for the --fail-severity
flag has been properly documented.
I am using the docker container
dshanley/vacuum:v0.5.1
in a github workflow to check for OpenAPI errors. The command isvacuum lint apidoc.yaml --no-style --fail-severity warning
and should return Error 1 when warnings or errors are thrown.When using the lint command with a file having errors and warnings, the command only exits with Error 1 when either
--fail-severity error
(or using the default)--fail-severity info
When using
--fail-severity warning
, the command displays the errors and warnings but still returns successfully. Here is an example yaml with an error and a couple warnings.I think there is a
warning
key missing somewhere in the code.Hope this helps! Thank you!