command
module
Version:
v0.2.5
Opens a new window with list of versions in this module.
Published: Mar 6, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶

OpenAPI Spec Diff
A diff tool for OpenAPI Spec 3 written in Go.
- go module
- deep diff into paths, parameters, responses, schemas, enums etc.
Build
git clone https://github.com/Tufin/oasdiff.git
cd oasdiff
go build
Running from the command-line
./oasdiff -base data/openapi-test1.yaml -revision data/openapi-test2.yaml
Help
./oasdiff --help
Embedding into your Go program
diff.Get(&diff.Config{}, spec1, spec2)
See full example: main.go
Notes
-
oasdiff expects OpenAPI References to be resolved.
You can resolve refs using this function from the openapi3 package.
-
oasdiff ignores changes to Examples and Extensions by default. You can change this behavior through configuration.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Package diff provides a diff function for OpenAPI Spec 3.
|
Package diff provides a diff function for OpenAPI Spec 3. |
Package load provides a function to load an OpenAPI spec from a URL or a Path
|
Package load provides a function to load an OpenAPI spec from a URL or a Path |
Click to show internal directories.
Click to hide internal directories.