OpenAPI 3.1, JSON Schema & MCP Contract Breaking-Change Detector
detect_openapi_breaking_changesCompares baseline and candidate OpenAPI 3.1 specs, JSON Schemas, or MCP tool manifests to detect breaking changes (removed fields, new required inputs, narrowed enums, type mutations). Use when auditing API, JSON Schema, or MCP contract revisions for backward compatibility before deployment; for compiling new TypeScript, Zod, and Pydantic schemas from a single sample JSON payload, use compile_polyglot_type_schemas instead. Read-only edge call (32 KB, 60 RPM): accepts 'baseline_schema_json' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_format | No | Contract specification format; defaults to 'auto_detect' when omitted. | |
| baseline_schema_json | Yes | JSON string of the baseline OpenAPI 3.1 spec, JSON Schema, or MCP tools array. | |
| candidate_schema_json | Yes | JSON string of the proposed candidate schema or contract revision to compare. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| breaking_changes | Yes | Detailed list of breaking removals, type changes, or new required parameters. | |
| non_breaking_additions | Yes | Backward-compatible optional fields or endpoints added. | |
| recommended_semver_bump | Yes | Recommended Semantic Version bump ('MAJOR_BREAKING', 'MINOR_ADDITIVE', or 'PATCH_COMPATIBLE'). | |
| breaking_changes_detected | Yes | True if any backward-incompatible contract change is found. |