OpenAPI document diffs, client compatibility, specification validation and authorization regression checks with verified witnesses.
git clone https://github.com/shen-E/oas-auth-diff.git
cd oas-auth-diff
moon install ./cmd/oas-auth-diff
oas-auth-diff compare cases/orders.before.yaml cases/orders.after.json
oas-auth-diff compare cases/orders.before.yaml cases/orders.after.json --format json > auth-diff.json
oas-auth-diff compare cases/orders.before.yaml cases/orders.after.json --format sarif > auth-diff.sarif
oas-auth-diff compare cases/orders.before.yaml cases/orders.after.json --format sarif --source-root . > auth-diff.sarif
oas-auth-diff compare before/api.yaml after/api.yaml --local-refs
oas-auth-diff compare cases/paired-schemes/before.yaml cases/paired-schemes/after.json --local-refs
oas-auth-diff breaking cases/parameters.before.yaml cases/parameters.after.json --format json
oas-auth-diff breaking cases/payload.before.yaml cases/payload.after.json --format json
oas-auth-diff diff cases/payload.before.yaml cases/payload.after.json --format json
oas-auth-diff summary cases/payload.before.yaml cases/payload.after.json
oas-auth-diff checks --format json
oas-auth-diff validate cases/payload.before.yaml --format json
oas-auth-diff breaking cases/labels.before.yaml cases/labels.after.json --format jsonmoon run cmd/oas-auth-diff --target native -- compare cases/orders.before.yaml cases/orders.after.json| Exit | Meaning |
|---|---|
| 0 | Analysis completed without new access conditions on existing operations. |
| 1 | A verified witness demonstrates weaker authentication. |
| 2 | Input error or incomplete comparison; any findings already established remain in the report. |
oas-auth-diff compare before.yaml after.yaml --before-document-url https://api.example/spec/openapi.yaml --after-document-url https://api.example/spec/openapi.yamlmoon add shen-E/oas-auth-diff@0.14.0
moon install shen-E/oas-auth-diff/cmd/oas-auth-diff@0.14.0moon work init consumer oas-auth-diffmoon check --target all
moon test --target all
moon build cmd/oas-auth-diff --target native
python cmd/oas-auth-diff/smoke.py
moon fmt
moon infoInstall
Download zipOpenAPI document diffs, client compatibility, specification validation and authorization regression checks with verified witnesses.