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

Should not detect a breaking change when corresponding basePath & operationChange lead to same Endpoints. #28

Open LasseGosch opened 4 years ago

LasseGosch commented 4 years ago

Added taking basePath into consideration when checking if endpoints have changed.

A changed basePath with a corresponding change of the operation paths could lead to unchanged endpoints and should not be detected as a breaking change.

Added a test (in SwaggerDiffTest) and resources (.yamls) for that case.

Removed unused SWAGGER_V2_HTTP from SwaggerDiffTest.