From two files to a review decision
- 01
Read the old and new JSON/YAML documents.
- 02
Resolve global security inheritance and operation overrides.
- 03
Compare effective AND/OR conditions in both directions.
- 04
Keep justified exceptions visible and return a CI result.
Run locally
python openapi_auth_drift.py examples/before.json examples/after.json --format json
README, LIMITS and tests are included in the ZIP
No open-source license has been selected for this version.
Recorded synthetic example
The JSON and YAML versions of this example produce four findings. A reason for /health leaves three findings for review and one acknowledged; the CI exit code is 1.
REVIEW GET /dual: requirements_relaxed
REVIEW GET /export: scope_reduced
ACKNOWLEDGED GET /health: new_anonymous_operation
REVIEW GET /invoices: anonymous_opened
4 findings · 3 actionable · 1 acknowledged
exit 1
This block is a short summary of a recorded example; the page runs no Python or CLI process.
Verification and supported profile
22 CLI test methods passed on Linux/POSIX, Python 3.14.10 and PyYAML 6.0.3. The separate 150-case preparation review is tied to the same core source hashes; that longer run was not repeated for the clean publication copy.
- Same-document auth/Path Item JSON Pointers are supported. External-file and remote auth references return exit 2; no references are downloaded.
- Callback/webhook operations are unsupported and are not silently skipped. General request/response Schema references are not resolved.
- A bounded YAML SafeLoader profile rejects anchors, aliases and merge keys. File size, nesting, nodes and comparison work are limited.
- Windows, other Python/PyYAML versions and live API behaviour were not tested. A schema difference is not proof of a live vulnerability.
README ↗ · LIMITS ↗ · Verification ↗
Read the full article ↗