OpenAPITools / openapi-diff

Utility for comparing two OpenAPI specifications.
Apache License 2.0
784 stars 153 forks source link

Adding or removing 'uniqueItems' is not detected #478

Open michael-schnell opened 1 year ago

michael-schnell commented 1 year ago

Adding 'uniqueItems' like is currently not detected as a change:

V1

schema:
    type: array
    items:
        type: integer

V2 (Added 'uniqueItems')

schema:
    type: array
    items:
        type: integer
    uniqueItems: true

Same with removing 'uniqueItems':

V1

schema:
    type: array
    items:
        type: integer
    uniqueItems: true

V2 (Removed'uniqueItems')

schema:
    type: array
    items:
        type: integer

(Changing 'true' to 'false' or vice versa should be treated simply as adding/removing)