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.
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!