{"uid":"cap_Gg9O8_RRCu7l0mYandNbQ","slug":"openapi-response-conformance-audit-52b77b03","name":"OpenAPI Response Conformance Audit","description":"Audit a real response against what the OpenAPI document promises for that operation. Resolves the declared status exactly, by range such as 2XX, or through default, checks declared response headers are present, and validates the body against the declared schema for its media type. Catches an implementation that has drifted from its own published contract.","url":"https://api.zfinia.com/x402/v1/openapi-response-conformance-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"request":{"type":"object","required":["method","path"],"properties":{"path":{"type":"string","maxLength":2048},"method":{"enum":["get","put","post","delete","options","head","patch","trace","GET","PUT","POST","DELETE","OPTIONS","HEAD","PATCH","TRACE"],"type":"string"}},"additionalProperties":false},"response":{"type":"object","required":["status"],"properties":{"body":{},"status":{"type":"integer","maximum":599,"minimum":100},"headers":{"type":"object"},"media_type":{"type":"string","maxLength":128}},"additionalProperties":false},"specification":{"type":"object"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.14","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.14/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.14","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.14","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZEe-FsWQd68Jz6Zko1bsa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.14","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a real API response against the promises made in its OpenAPI specification, checking status codes, headers, and body schema for contract drift.","exampleAgentPrompt":"Check whether this real API response I just got back — status 200, Content-Type application/json, with this body — actually conforms to what the OpenAPI spec says the GET /users/{id} operation should return.","exampleUseCases":[{"title":"Catching schema drift in production","prompt":"My /orders endpoint is returning a 200 with a body that looks different from what we published in our OpenAPI spec. Can you audit this actual response against the spec and tell me exactly what's drifted?"},{"title":"CI gate for API contract testing","prompt":"Before we merge this PR, audit the recorded response from our POST /payments operation — status 201, these headers, and this JSON body — against our current OpenAPI document and flag any violations."},{"title":"Debugging undeclared error response","prompt":"Our API returned a 422 with this body, but I'm not sure our OpenAPI spec actually declares a 422 for this path. Can you check if this response conforms to whatever the spec says — by exact status, range, or default — for DELETE /subscriptions/{id}?"}],"resultDescription":"Returns a detailed conformance report indicating whether the response satisfies the OpenAPI contract: whether the status code was matched exactly, by range (e.g. 2XX), or via a default; which declared response headers are absent or mismatched; and any schema violations in the body for the resolved media type. Also surfaces undeclared fields and mismatches between the actual and promised contract.","failureModes":["Malformed or incomplete OpenAPI specification object causes parsing failure","Response status outside 100–599 rejected at input validation","Unknown media type not declared in the spec results in unresolvable schema","Path or method not found in the specification yields a not-found error","Body schema references unresolvable $ref components within the provided spec"],"whenToPreferThis":"Choose this endpoint when you need to verify that a live or recorded HTTP response actually honors the contract declared in an OpenAPI document — particularly for catching implementation drift, running contract tests in CI, or auditing third-party APIs you depend on. Prefer it over generic JSON Schema validators when you want OpenAPI-aware status-code resolution (exact, range, or default) and header checking in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T12:32:50.605Z","isFirstParty":false,"canonicalSlug":"openapi-response-conformance-audit-52b77b03"}