diff_openapi
Compare two OpenAPI 3.x documents to classify changes as breaking, warning, non-breaking, or info, detect breaking changes, and suggest the semver version bump.
Instructions
Compare two OpenAPI 3.x documents. Each change is breaking, warning, non-breaking or info; breaking says
whether any is breaking, and semver suggests the version bump.
Typical use after editing a spec: revision_path="openapi.yaml", base_git_ref="main".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The old version, as YAML or JSON text (or a JSON object). | |
| revision | No | The new version, as YAML or JSON text (or a JSON object). | |
| base_path | No | The old version as a local file. | |
| base_git_ref | No | Use revision_path as it is at this git ref (e.g. main, HEAD) as the base. | |
| revision_path | No | The new version as a local file. |