The before and after fixtures exercise the production semantic diff engine. This example is generated from fixtures/comparison-before.json and fixtures/comparison-after.json.
View structured JSON result
{
"beforeUrl": "https://demo.revenue-agent.test/openapi-before.json",
"afterUrl": "https://demo.revenue-agent.test/openapi-after.json",
"beforeHash": "02298c26b01bd1796fcf5210c87a38dba9b04a02a273a87a733dae39b68a7b0e",
"afterHash": "853354900e23611f056a5100a0cbeb2b30873d7fedc1c600786b588f6b35d989",
"changed": true,
"summary": { "breaking": 4, "potentiallyBreaking": 0, "nonBreaking": 0, "informational": 0 },
"changes": [
{ "path": "/legacy", "method": "get", "rule": "endpoint.removed", "message": "Endpoint removed: GET /legacy", "classification": "breaking" },
{ "path": "/pets", "method": "post", "location": "request", "field": "body.email", "rule": "request.required.added", "before": null, "after": { "type": "string", "required": true }, "message": "request field added: body.email", "classification": "breaking" },
{ "path": "/pets", "method": "post", "location": "request", "field": "body.name", "rule": "schema.type.changed", "before": { "type": "string", "required": false }, "after": { "type": "integer", "required": false }, "message": "body.name type changed from string to integer", "classification": "breaking" },
{ "path": "/pets", "method": "post", "location": "response", "field": "response.200.body.name", "rule": "response.field.removed", "before": { "type": "string", "required": true }, "after": null, "message": "response field removed: response.200.body.name", "classification": "breaking" }
],
"metrics": { "fetchDurationMs": 2, "bytesDownloaded": 837, "parseDurationMs": 0.948, "diffDurationMs": 0.281, "totalDurationMs": 1.677, "memoryRssBytes": 61345792, "cpuUserMicros": 0, "cpuSystemMicros": 0, "llmTokens": 0, "llmCostUsd": 0 },
"markdown": "# OpenAPI comparison report\n\n- Before: https://demo\\.revenue\\-agent\\.test/openapi\\-before\\.json\n- After: https://demo\\.revenue\\-agent\\.test/openapi\\-after\\.json\n- Changed: yes\n\n## Summary\n\n- Breaking: 4\n- Potentially breaking: 0\n- Non-breaking: 0\n- Informational: 0\n\n## Changes\n\n- **breaking** `GET /legacy`: Endpoint removed: GET /legacy\n- **breaking** `POST /pets`: request field added: body\\.email\n- **breaking** `POST /pets`: body\\.name type changed from string to integer\n- **breaking** `POST /pets`: response field removed: response\\.200\\.body\\.name\n"
}