diff_openapi_breaking_changes
Compares baseline and candidate OpenAPI/Swagger specs in JSON or YAML to identify breaking changes and recommend SemVer bumps.
Instructions
Audits OpenAPI 3.0/3.1 and Swagger 2.0 specs (JSON or YAML) using contravariant request and covariant response variance rules (nullable, enum, required, status/auth changes) and recommends SemVer bumps.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diff_openapi_breaking_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basePath | No | Optional local file path to the baseline OpenAPI/Swagger file when baseSpec is omitted. | |
| baseSpec | No | Baseline OpenAPI 3.0/3.1 or Swagger 2.0 specification text in JSON or YAML format. | |
| headPath | No | Optional local file path to the candidate OpenAPI/Swagger file when headSpec is omitted. | |
| headSpec | No | Candidate OpenAPI 3.0/3.1 or Swagger 2.0 specification text in JSON or YAML format. | |
| onlyBreaking | No | When true, omits non-breaking additions from the returned diff report. |