Compare two API specs
compare_specsCompare two API specs to identify breaking changes, additions, modifications, and warnings with a risk score and compatibility summary. Analyzes API contract compatibility without modifying code.
Instructions
Compares two API specs and lists breaking changes, additions, modifications, and warnings with a risk score and compatibility summary. For a merge/deploy decision prefer is_change_safe. Analyzes API contract compatibility only; it does NOT modify code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specFormat | No | ||
| baseSpecPath | No | Path to the base (old) spec file. | |
| failOnBreaking | No | If true, the header flags when any breaking change is present. | |
| targetSpecPath | No | Path to the target (new) spec file. | |
| baseSpecContent | No | Inline base (old) spec content. | |
| targetSpecContent | No | Inline target (new) spec content. |