Sayi / swagger-diff

:ski: Compare two swagger API specifications(1.x or v2.0)
http://deepoove.com/swagger-diff/
Apache License 2.0
276 stars 85 forks source link

Make ParameterDiff detect changes to fx the Type of a PathParameter #22

Closed Hervian closed 4 years ago

Hervian commented 5 years ago

Minor changes to ParameterDiff and supporting class ListDiff to make the swagger-diff tool report when a parameter has been changed. Example: Say a path parameter changes from type String to integer. This breaks backwards compatibility.

ListDiff change: The ListDiff class previously attempted to remove elements from the 'increased' list using a call to equals. But since the two Parameters are not equal the element was not removed from the list (which it ought to be since the parameter is not new, only changed.

ParameterDiff change: Previously the logic only handled BodyParameters.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 63


Totals Coverage Status
Change from base Build 60: 0.2%
Covered Lines: 717
Relevant Lines: 773

💛 - Coveralls