civisanalytics / swagger-diff

Utility for comparing two Swagger specifications.
BSD 3-Clause "New" or "Revised" License
264 stars 32 forks source link

Swagger-Diff not erroring on major changes #63

Closed swiftzor closed 5 years ago

swiftzor commented 5 years ago

This may very well be a PEBCAK but I'm trying to run a swagger-diff in jenkins and get Jenkins to fail when there are differences detected. Now I'm running with npx swagger-diff <one> <two>

I expect to get back an error since they're two completely different specs, but instead all I get back is warnings. Am I using this right? Should I be doing something different instead? The idea I'd like to do here is just monitor my API's and have Jenkins email me when it does detect a difference, and there's not much documentation on how to read the CLI output.

Thanks!

swiftzor commented 5 years ago

So I found a workaround. My bad!