Non backward compatible change not detected (removed content type result)
farnulfo opened this issue · 1 comments
farnulfo commented
Hi,
I've used the https://api-diff.io/ to compare two versions of an api.
In the second version a content type return data was deleted but this non backward compatible change was not detected by https://api-diff.io/ : "No API structure changes detected"
Here the two files I used
Simple-API-V1.yaml.txt
Simple-API-V2.yaml.txt
This breaking change is detected by https://github.com/OpenAPITools/openapi-diff :
`C:\openapi-diff-master\cli>java -jar target\openapi-diff-cli-2.1.0-SNAPSHOT-all.jar Simple-API-V1.yaml Simple-API-V2.yaml
== API CHANGE LOG ==
Simple API
-- What's Changed --
- GET /users/{userId}
Return Type:- Changed 200 OK
Media types:- Deleted application/xml
- Changed 200 OK
-- Result --
API changes broke backward compatibility
`