Skip to content

Do not fail with breaking changes when major version is bumped #460

Description

@jdnvn

Hello!

I was wondering if it makes sense to pass the diff check if there are breaking changes, but the major version has been bumped. Right now, I am planning to use this as a required workflow on GitHub PRs and I want to give developers the opportunity to get around the check if they bump the version.

Would love this as a potential built in feature or option when running.

Thanks

Activity

  1. joschi commented on Feb 25, 2023

    @joschi
    Contributor

    @jdnvn Thanks for this suggestion!

    I like the idea, but one issue I see is that info.version is a string with no inherent semantics:

    version string REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).

    https://swagger.io/specification/#info-object

    This means that even if OpenAPI Diff knew what semantic versioning is, there's no guarantee that the info.version field actually does contain one.

    For all practical purposes, the following values are valid "versions": one, two, foobar1.

    Any suggestions how this change should work in these cases?
    Maybe an explicit flag which assumes info.version is a semver string and fail otherwise?

  2. igokoro commented on Mar 6, 2023

    @igokoro

    Is version change something that can be implemented as SPI extension? There's very little documentation for ExtensionDiff, so it's hard to tell if it's got enough information/power to override the diff produced by the tool.

  3. added this to the 2.2.0 milestone on Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions