Skip to content

Unable to skip schema BC check for min and max properties #852

Description

@jdesrochers-atpco

When updating minProperties (increasing value) or maxProperties (decreasing value) of an attribute, there is no option in the backward compatibility checks to make the spec compatible.

Breaking example:
Before

        stuff:
          type: object
          minProperties: 1
          maxProperties: 10
          additionalProperties:
            type: string

After

        stuff:
          type: object
          minProperties: 5
          maxProperties: 10
          additionalProperties:
            type: string

Cannot be bypassed.

we should have a BC configuration property to manage this situation

Activity

  1. added theissue type on Oct 28, 2025
  2. added a commit that references this issue on Oct 28, 2025
  3. jdesrochers-atpco commented on Oct 28, 2025

    @jdesrochers-atpco
    ContributorAuthor

    Suggested a solution for this issue in PR: #853

  4. added a commit that references this issue on Oct 28, 2025
  5. added a commit that references this issue on Oct 29, 2025
  6. jdesrochers-atpco commented on Oct 29, 2025

    @jdesrochers-atpco
    ContributorAuthor

    Thanks for merging my PR @DrSatyr. Do you have any plan for a 2.1.5 release that would include this contribution? I just need to know if we wait for it, or if we update our CI/CD pipeline to use a local snapshot version.

  7. DrSatyr commented on Oct 29, 2025

    @DrSatyr
    Collaborator

    I will create a release today

  8. jdesrochers-atpco commented on Oct 31, 2025

    @jdesrochers-atpco
    ContributorAuthor

    I will create a release today

    Hi @DrSatyr, just following up on the next release. Any chance you can create it by next Monday.

    Thanks

  9. DrSatyr commented on Nov 3, 2025

    @DrSatyr
    Collaborator
  10. ThiruAI commented on Nov 3, 2025

    @ThiruAI

    @jdesrochers-atpco released!

    @DrSatyr we don' t still see 2.1.5 release version. is it going to take some time. https://github.com/OpenAPITools/openapi-diff/releases

  11. jdesrochers-atpco commented on Nov 3, 2025

    @jdesrochers-atpco
    ContributorAuthor

    Our process takes the CLI library from the maven central repo. Is there a delay until it can be available there?

  12. DrSatyr commented on Nov 3, 2025

    @DrSatyr
    Collaborator

    It should be available on the Maven Central, please check https://repo1.maven.org/maven2/org/openapitools/openapidiff/openapi-diff-core/2.1.5/

  13. ThiruAI commented on Nov 3, 2025

    @ThiruAI

    It should be available on the Maven Central, please check https://repo1.maven.org/maven2/org/openapitools/openapidiff/openapi-diff-core/2.1.5/

    Thanks. I see it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions