Skip to content

Issue related to minItems/maxItems resulting in changes being detected #787

@s-jepsen

Description

@s-jepsen

Since openapi-diff version 2.1.0, there's an issue related to minItems/maxItems.

Whenever maxItems property is set in a requestBody - the diff plugin flags it as change.

Resulting in:

==========================================================================
==                            API CHANGE LOG                            ==
==========================================================================
                                core-asset                                
--------------------------------------------------------------------------
--                            What's Changed                            --
--------------------------------------------------------------------------
- PUT    /v3/core-asset/organizations/{organization_id}/assets/move
  Request:
        - Changed application/json
          Schema: Backward compatible
--------------------------------------------------------------------------
--                                Result                                --
--------------------------------------------------------------------------
                   API changes are backward compatible                    
--------------------------------------------------------------------------

The problem is located in move-core-assets-request.yml#maxItems

I've added a Maven project for reproducing the issue - it might be related to change:
#753

openapi-diff-test.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions