Skip to content

Add option to break on diff #198

@mattiZed

Description

@mattiZed

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions