{
  "x402Version": 2,
  "id": 34028,
  "slug": "34028",
  "resource": "https://api.zfinia.com/x402/v1/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.",
  "type": "http",
  "serviceName": "OpenAPI Response Audit",
  "resourceType": "Security",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "140000",
      "amountUsd": 0.14,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "request": {
              "method": "GET",
              "path": "/orders/{id}"
            },
            "response": {
              "body": {
                "id": "o-1",
                "status": "cancelled",
                "total": "42.50"
              },
              "headers": {
                "Content-Type": "application/json"
              },
              "status": 200
            },
            "specification": {
              "components": {
                "schemas": {
                  "Order": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "legacy_ref": {
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "open",
                          "shipped"
                        ],
                        "type": "string"
                      },
                      "total": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "id",
                      "total"
                    ],
                    "type": "object"
                  }
                },
                "securitySchemes": {
                  "apiKey": {
                    "in": "header",
                    "name": "X-Api-Key",
                    "type": "apiKey"
                  }
                }
              },
              "info": {
                "title": "Orders API",
                "version": "1.4.0"
              },
              "openapi": "3.1.0",
              "paths": {
                "/legacy/export": {
                  "get": {
                    "operationId": "legacyExport",
                    "responses": {
                      "200": {
                        "description": "A CSV export"
                      }
                    },
                    "summary": "Legacy export"
                  }
                },
                "/orders": {
                  "get": {
                    "operationId": "listOrders",
                    "responses": {
                      "200": {
                        "content": {
                          "application/json": {
                            "schema": {
                              "items": {
                                "$ref": "#/components/schemas/Order"
                              },
                              "type": "array"
                            }
                          }
                        },
                        "description": "A page of orders"
                      },
                      "429": {
                        "description": "Rate limited"
                      }
                    },
                    "summary": "List orders"
                  },
                  "parameters": [
                    {
                      "in": "query",
                      "name": "page",
                      "schema": {
                        "minimum": 1,
                        "type": "integer"
                      }
                    }
                  ],
                  "post": {
                    "operationId": "createOrder",
                    "requestBody": {
                      "content": {
                        "application/json": {
                          "schema": {
                            "$ref": "#/components/schemas/Order"
                          }
                        }
                      }
                    },
                    "responses": {
                      "201": {
                        "content": {
                          "application/json": {
                            "schema": {
                              "$ref": "#/components/schemas/Order"
                            }
                          }
                        },
                        "description": "Created"
                      }
                    },
                    "summary": "Create an order"
                  }
                },
                "/orders/{id}": {
                  "get": {
                    "operationId": "getOrder",
                    "parameters": [
                      {
                        "in": "path",
                        "name": "id",
                        "schema": {
                          "type": "string"
                        }
                      }
                    ],
                    "responses": {
                      "200": {
                        "content": {
                          "application/json": {
                            "schema": {
                              "$ref": "#/components/schemas/Order"
                            }
                          }
                        },
                        "description": "The order"
                      },
                      "404": {
                        "description": "Not found"
                      }
                    },
                    "summary": "Fetch one order"
                  }
                }
              },
              "security": [
                {
                  "apiKey": []
                }
              ]
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "assumptions": [
              "A status may be declared exactly, as a range such as 2XX, or through default, and the most specific declaration is used.",
              "You supply the observed response, so this works against an API behind authentication or on a private network."
            ],
            "body_checked": true,
            "complete": true,
            "conformant": false,
            "finding_count": 2,
            "findings": [
              {
                "code": "TYPE_MISMATCH",
                "detail": "GET /orders/{id}: response body Expected number, found string.",
                "operation": "GET /orders/{id}",
                "pointer": "/total",
                "status": "200"
              },
              {
                "code": "NOT_IN_ENUM",
                "detail": "GET /orders/{id}: response body \"cancelled\" is not one of the 2 permitted values.",
                "operation": "GET /orders/{id}",
                "pointer": "/status",
                "status": "200"
              }
            ],
            "findings_by_code": {
              "NOT_IN_ENUM": 1,
              "TYPE_MISMATCH": 1
            },
            "limitations": [
              "Conformance of one response against the supplied specification. Whether the specification is correct is not assessed.",
              "conformant is true only when the operation and status were declared and every declared constraint was evaluated and passed."
            ],
            "limits": {
              "maxClientOperations": 200,
              "maxFindings": 500,
              "maxOperations": 500,
              "maxRequestBodyBytes": 262144
            },
            "matched_operation": "GET /orders/{id}",
            "matched_status_declaration": "200",
            "not_examined": [],
            "observed_at": "2026-10-02T00:00:00.000Z",
            "request_id": "example-request",
            "service_id": "openapi_response_conformance_audit",
            "service_version": "1.0.0",
            "status": 200
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "request": {
                    "additionalProperties": false,
                    "properties": {
                      "method": {
                        "enum": [
                          "get",
                          "put",
                          "post",
                          "delete",
                          "options",
                          "head",
                          "patch",
                          "trace",
                          "GET",
                          "PUT",
                          "POST",
                          "DELETE",
                          "OPTIONS",
                          "HEAD",
                          "PATCH",
                          "TRACE"
                        ],
                        "type": "string"
                      },
                      "path": {
                        "maxLength": 2048,
                        "type": "string"
                      }
                    },
                    "required": [
                      "method",
                      "path"
                    ],
                    "type": "object"
                  },
                  "response": {
                    "additionalProperties": false,
                    "properties": {
                      "body": {},
                      "headers": {
                        "type": "object"
                      },
                      "media_type": {
                        "maxLength": 128,
                        "type": "string"
                      },
                      "status": {
                        "maximum": 599,
                        "minimum": 100,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "status"
                    ],
                    "type": "object"
                  },
                  "specification": {
                    "type": "object"
                  }
                },
                "required": [
                  "specification",
                  "request",
                  "response"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "openapi",
    "response validation",
    "contract drift",
    "monitoring",
    "developer tooling",
    "bazaar"
  ],
  "sourceHost": "api.zfinia.com",
  "lastUpdated": "2026-10-04T07:53:25.356Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-04T07:53:21.11Z"
  },
  "metadata": {
    "serviceName": "OpenAPI Response Audit",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "request": {
                "method": "GET",
                "path": "/orders/{id}"
              },
              "response": {
                "body": {
                  "id": "o-1",
                  "status": "cancelled",
                  "total": "42.50"
                },
                "headers": {
                  "Content-Type": "application/json"
                },
                "status": 200
              },
              "specification": {
                "components": {
                  "schemas": {
                    "Order": {
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "legacy_ref": {
                          "type": "string"
                        },
                        "status": {
                          "enum": [
                            "open",
                            "shipped"
                          ],
                          "type": "string"
                        },
                        "total": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "id",
                        "total"
                      ],
                      "type": "object"
                    }
                  },
                  "securitySchemes": {
                    "apiKey": {
                      "in": "header",
                      "name": "X-Api-Key",
                      "type": "apiKey"
                    }
                  }
                },
                "info": {
                  "title": "Orders API",
                  "version": "1.4.0"
                },
                "openapi": "3.1.0",
                "paths": {
                  "/legacy/export": {
                    "get": {
                      "operationId": "legacyExport",
                      "responses": {
                        "200": {
                          "description": "A CSV export"
                        }
                      },
                      "summary": "Legacy export"
                    }
                  },
                  "/orders": {
                    "get": {
                      "operationId": "listOrders",
                      "responses": {
                        "200": {
                          "content": {
                            "application/json": {
                              "schema": {
                                "items": {
                                  "$ref": "#/components/schemas/Order"
                                },
                                "type": "array"
                              }
                            }
                          },
                          "description": "A page of orders"
                        },
                        "429": {
                          "description": "Rate limited"
                        }
                      },
                      "summary": "List orders"
                    },
                    "parameters": [
                      {
                        "in": "query",
                        "name": "page",
                        "schema": {
                          "minimum": 1,
                          "type": "integer"
                        }
                      }
                    ],
                    "post": {
                      "operationId": "createOrder",
                      "requestBody": {
                        "content": {
                          "application/json": {
                            "schema": {
                              "$ref": "#/components/schemas/Order"
                            }
                          }
                        }
                      },
                      "responses": {
                        "201": {
                          "content": {
                            "application/json": {
                              "schema": {
                                "$ref": "#/components/schemas/Order"
                              }
                            }
                          },
                          "description": "Created"
                        }
                      },
                      "summary": "Create an order"
                    }
                  },
                  "/orders/{id}": {
                    "get": {
                      "operationId": "getOrder",
                      "parameters": [
                        {
                          "in": "path",
                          "name": "id",
                          "schema": {
                            "type": "string"
                          }
                        }
                      ],
                      "responses": {
                        "200": {
                          "content": {
                            "application/json": {
                              "schema": {
                                "$ref": "#/components/schemas/Order"
                              }
                            }
                          },
                          "description": "The order"
                        },
                        "404": {
                          "description": "Not found"
                        }
                      },
                      "summary": "Fetch one order"
                    }
                  }
                },
                "security": [
                  {
                    "apiKey": []
                  }
                ]
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "assumptions": [
                "A status may be declared exactly, as a range such as 2XX, or through default, and the most specific declaration is used.",
                "You supply the observed response, so this works against an API behind authentication or on a private network."
              ],
              "body_checked": true,
              "complete": true,
              "conformant": false,
              "finding_count": 2,
              "findings": [
                {
                  "code": "TYPE_MISMATCH",
                  "detail": "GET /orders/{id}: response body Expected number, found string.",
                  "operation": "GET /orders/{id}",
                  "pointer": "/total",
                  "status": "200"
                },
                {
                  "code": "NOT_IN_ENUM",
                  "detail": "GET /orders/{id}: response body \"cancelled\" is not one of the 2 permitted values.",
                  "operation": "GET /orders/{id}",
                  "pointer": "/status",
                  "status": "200"
                }
              ],
              "findings_by_code": {
                "NOT_IN_ENUM": 1,
                "TYPE_MISMATCH": 1
              },
              "limitations": [
                "Conformance of one response against the supplied specification. Whether the specification is correct is not assessed.",
                "conformant is true only when the operation and status were declared and every declared constraint was evaluated and passed."
              ],
              "limits": {
                "maxClientOperations": 200,
                "maxFindings": 500,
                "maxOperations": 500,
                "maxRequestBodyBytes": 262144
              },
              "matched_operation": "GET /orders/{id}",
              "matched_status_declaration": "200",
              "not_examined": [],
              "observed_at": "2026-10-02T00:00:00.000Z",
              "request_id": "example-request",
              "service_id": "openapi_response_conformance_audit",
              "service_version": "1.0.0",
              "status": 200
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "request": {
                      "additionalProperties": false,
                      "properties": {
                        "method": {
                          "enum": [
                            "get",
                            "put",
                            "post",
                            "delete",
                            "options",
                            "head",
                            "patch",
                            "trace",
                            "GET",
                            "PUT",
                            "POST",
                            "DELETE",
                            "OPTIONS",
                            "HEAD",
                            "PATCH",
                            "TRACE"
                          ],
                          "type": "string"
                        },
                        "path": {
                          "maxLength": 2048,
                          "type": "string"
                        }
                      },
                      "required": [
                        "method",
                        "path"
                      ],
                      "type": "object"
                    },
                    "response": {
                      "additionalProperties": false,
                      "properties": {
                        "body": {},
                        "headers": {
                          "type": "object"
                        },
                        "media_type": {
                          "maxLength": 128,
                          "type": "string"
                        },
                        "status": {
                          "maximum": 599,
                          "minimum": 100,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "status"
                      ],
                      "type": "object"
                    },
                    "specification": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "specification",
                    "request",
                    "response"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.zfinia.com",
    "manifest_name": "api.zfinia.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "assumptions": [
      "A status may be declared exactly, as a range such as 2XX, or through default, and the most specific declaration is used.",
      "You supply the observed response, so this works against an API behind authentication or on a private network."
    ],
    "body_checked": true,
    "complete": true,
    "conformant": false,
    "finding_count": 2,
    "findings": [
      {
        "code": "TYPE_MISMATCH",
        "detail": "GET /orders/{id}: response body Expected number, found string.",
        "operation": "GET /orders/{id}",
        "pointer": "/total",
        "status": "200"
      },
      {
        "code": "NOT_IN_ENUM",
        "detail": "GET /orders/{id}: response body \"cancelled\" is not one of the 2 permitted values.",
        "operation": "GET /orders/{id}",
        "pointer": "/status",
        "status": "200"
      }
    ],
    "findings_by_code": {
      "NOT_IN_ENUM": 1,
      "TYPE_MISMATCH": 1
    },
    "limitations": [
      "Conformance of one response against the supplied specification. Whether the specification is correct is not assessed.",
      "conformant is true only when the operation and status were declared and every declared constraint was evaluated and passed."
    ],
    "limits": {
      "maxClientOperations": 200,
      "maxFindings": 500,
      "maxOperations": 500,
      "maxRequestBodyBytes": 262144
    },
    "matched_operation": "GET /orders/{id}",
    "matched_status_declaration": "200",
    "not_examined": [],
    "observed_at": "2026-10-02T00:00:00.000Z",
    "request_id": "example-request",
    "service_id": "openapi_response_conformance_audit",
    "service_version": "1.0.0",
    "status": 200
  }
}