Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OpenAPI Diff and Breaking Changes

License

NotificationsYou must be signed in to change notification settings

oasdiff/oasdiff

 
 

Repository files navigation

CIcodecovGo Report CardGoDocDocker Image VersionSlack

oasdiff banner

Command-line and Go package to compare and detect breaking changes in OpenAPI specs.

Installation

Install with Go

go install github.com/oasdiff/oasdiff@latest

Install on macOS with Brew

brew tap oasdiff/homebrew-oasdiffbrew install oasdiff

Install on macOS and Linux using curl

curl -fsSL https://raw.githubusercontent.com/oasdiff/oasdiff/main/install.sh| sh

Install with asdf

https://github.com/oasdiff/asdf-oasdiff

Manually install on macOS, Windows and Linux

Copy binaries fromlatest release.

Use install.sh

You can use theinstall.sh script to install oasdiff.
The script will download the latest version, or a specific version of oasdiff and install it in /usr/local/bin.

Try it

Locally

oasdiff changelog https://raw.githubusercontent.com/oasdiff/oasdiff/main/data/openapi-test1.yaml https://raw.githubusercontent.com/oasdiff/oasdiff/main/data/openapi-test5.yaml

With Docker

docker run --rm -t tufin/oasdiff changelog https://raw.githubusercontent.com/oasdiff/oasdiff/main/data/openapi-test1.yaml https://raw.githubusercontent.com/oasdiff/oasdiff/main/data/openapi-test5.yaml

Features

Demo

The main commands

  • diff: the diff between OpenAPI specs, fully detailed
  • breaking: breaking changes between OpenAPI specs
  • changelog: important changes between OpenAPI specs including breaking and non-breaking changes
  • flatten: replace all instances of allOf by a merged equivalent
  • checks: displays the different checks that oasdiff runs to detect changes

Roadmap

I am currently working on the ability to correlate breaking changes and changelog messages with the underlying changes in the original YAML spec.
This will allow users to see changes in their original context, investigate, and determine how to handle them.
Specifically, github users will be able to click annotations and see the diff at the relevant line as discussedhere.
Please help us prioritize the roadmap.

Credits

This project relies on the excellent implementation of OpenAPI 3.0 for Go:kin-openapi.

Feedback

We welcome your feedback.
If you have ideas for improvement or additional needs around APIs, pleaselet us know.


[8]ページ先頭

©2009-2025 Movatter.jp