openapi-changes icon indicating copy to clipboard operation
openapi-changes copied to clipboard

Add option to break on diff

Open mattiZed opened this issue 7 months ago • 0 comments
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!

mattiZed avatar Apr 02 '25 10:04 mattiZed