Sign inSign up

mattpolzin2/openapi-diff

By mattpolzin2

•Updated 8 months ago

A dockerized version of the openapi-diff tool available at https://github.com/mattpolzin/OpenAPIDiff

Image
0

1.4K

mattpolzin2/openapi-diff repository overview

⁠OpenAPIDiff

This is a WIP diffing library for OpenAPI documentation. It produces a hierarchical list of changes between two versions of an API. OpenAPI v3.0 and OpenAPI v3.1 are supported.

⁠Example

To see an example of what this library produces when run against two YAML OpenAPI documents with the markdown option, take a look at the example folder.

⁠Usage

The dockerized executable will require you to mount one or more volumes containing the versions of the API you wish to diff. Assuming you have the old and new versions of your API in the current working directory (named old.json and new.json), a simple invocation would be:

docker run --rm -v "$(pwd)/old.json:/api/old.json" -v "$(pwd)/new.json:/api/new.json" mattpolzin2/openapi-diff /api/old.json /api/new.json

You can pass mattpolzin2/openapi-diff the --markdown flag in addition to the two API document files to produce a markdown diff instead of the default plaintext diff.

For all options, see the --help.

Tag summary

Content type

Image

Digest

sha256:7e3b33df3…

Size

102.4 MB

Last updated

8 months ago

docker pull mattpolzin2/openapi-diff