I assume you’re trying to compare an original and an updated spec or want to check a single spec against a previous commit in a Git repo.
We will use an application called openapi-changes.
Watch the video
This video will walk you through how to use openapi-changes and will showcase all the available commands and how to use them.
What is openapi-changes?
openapi-changes is the world’s sexiest OpenAPI breaking change detector.
It allows you to compare two OpenAPI specifications and see what changed. It’s like git diff
for OpenAPI (but way, way sexier)
More information about openapi-changes is available over on the pb33f wiretap site.
Installing openapi-changes
There are a few ways to install openapi-changes:
Installing using homebrew
Installing using npm/yarn
Installing using docker
Running openapi-changes using docker
Installing using curl
Read the openapi-changes quickstart
This video is an extended version of the openapi-changes quickstart.