Skip to content

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

Merged
Sayi merged 2 commits intoSayi:masterfrom
Hervian:bugs/changedTypeOfPathParameter
Jun 29, 2020
Merged

Make ParameterDiff detect changes to fx the Type of a PathParameter#22
Sayi merged 2 commits intoSayi:masterfrom
Hervian:bugs/changedTypeOfPathParameter

Conversation

@Hervian
Copy link

@Hervian Hervian commented Mar 13, 2019

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
Copy link

Pull Request Test Coverage Report for Build 63

  • 22 of 22 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 92.755%

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

💛 - Coveralls

@Sayi Sayi merged commit 86cc30b into Sayi:master Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants