openapi-changes
openapi-changes copied to clipboard
Add option to break on diff
trafficstars
Hey,
Awesome project, love the styling but also the features!
I'm using openapi-changes summary ... in a CI pipeline. Currently, the pipeline will only break on detecting breaking changes (as of openapi-changes's exit-code being non-zero in that case). Is there a way to also make it return a non-zero exitcode, when it just detected any change, even if non-breaking?
Background: I use an openapi.lock file in the repository of a microservice and I want to achieve that it needs to be updated to the latest state, even if there we're non-breaking changes (e.g. additions).
Ideally something like openapi-changes summary --error-on-diff ... would be great!