Openapi-specification: Tooling to generate a diff report for incremental builds of an api

Created on 24 Dec 2014  路  4Comments  路  Source: OAI/OpenAPI-Specification

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...

Tooling

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.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aedart picture aedart  路  4Comments

raderio picture raderio  路  5Comments

muhmud picture muhmud  路  5Comments

kolisko picture kolisko  路  4Comments

slinkydeveloper picture slinkydeveloper  路  4Comments