It would be nice to be able to generate diff reports on the documented api.
We are building a REST interface in a fairly large application and it would be nice if the swagger-ui would incorporate a diff with a comparison to a previous version of the deployed application.
This could, imho be implemented by keeping snapshots of the api-docs and compare them with the current api-docs in the ui.
The diff should be fairly dumb: It should just report added/removed operations, modified request/response objects, etc. So not trying to detected operations that got moved/merged etc...
Vote to this
There are a number of existing open source tools that do something in this space - a simple search shows.
Look on swagger.io : http://swagger.io/using-swagger-to-detect-breaking-api-changes/
https://github.com/civisanalytics/swagger-diff (a Ruby tool)
See also a node package, https://www.npmjs.com/package/swagger-diff (
Supports only swagger spec 2.0)
I've not evaluated the effectiveness of any of these.
I would love this feature as well. And it seems that it has been done on
mendeley api.. Would be awesome if this feature could be built into swagger. Ability to compare every swagger file inside a folder incrementally based on time.
Closing as out of scope for the spec.
Most helpful comment
There are a number of existing open source tools that do something in this space - a simple search shows.
Look on swagger.io : http://swagger.io/using-swagger-to-detect-breaking-api-changes/
https://github.com/civisanalytics/swagger-diff (a Ruby tool)
See also a node package, https://www.npmjs.com/package/swagger-diff (
Supports only swagger spec 2.0)
I've not evaluated the effectiveness of any of these.