zallek / swagger-diff

Compute the diff between two swagger API specifications.
https://zallek.github.io/swagger-diff/
58 stars 30 forks source link

make successful CLI execution silent #22

Open mhuisman opened 7 years ago

mhuisman commented 7 years ago

in reporter.js,

similar to https://github.com/zallek/swagger-diff/blob/master/src/reporter.js#L29 and https://github.com/zallek/swagger-diff/blob/master/src/reporter.js#L36, move https://github.com/zallek/swagger-diff/blob/master/src/reporter.js#L22 and https://github.com/zallek/swagger-diff/blob/master/src/reporter.js#L15 within their respective if-blocks.

CLI users could then (given the correct config rules) interpret non-empty stdout as evidence of diff failure.

I'm happy to put together a PR if that would help. Thanks in advance!