OpenAPI downgrade converts OpenAPI 3.1.x specifications to 3.0.x while preserving logic. Current version 1.0.1, requires Python >=3.7. Simple CLI and programmatic API.
pip install openapi-downgradeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Read an OpenAPI 3.1 spec (as Python dict), downgrade to 3.0, write back.
Always manually verify downgraded output, especially for complex specs.
Parse YAML/JSON into dict before calling downgrade_openapi.
Use yaml.dump or json.dump on the returned dict.