{"openapi":"3.1.0","info":{"title":"Table Header Span Map","version":"1.0.0","description":"Associate each data-column position with the IDs of the headers that span it and find columns without bottom-level labels.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/table-header-span-map/v1/check":{"post":{"operationId":"table_header_span_map","summary":"Associate each data-column position with the IDs of the headers that span it and find columns without bottom-level labels.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"type":"integer","minimum":1,"maximum":80},"header_rows":{"minItems":1,"maxItems":8,"type":"array","items":{"minItems":1,"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"column":{"type":"integer","minimum":1,"maximum":80},"span":{"type":"integer","minimum":1,"maximum":80}},"required":["id","column","span"],"additionalProperties":false}}}},"required":["columns","header_rows"],"additionalProperties":false},"example":{"columns":3,"header_rows":[[{"id":"id","column":1,"span":1},{"id":"results","column":2,"span":2}],[{"id":"week1","column":2,"span":1},{"id":"week2","column":3,"span":1}]]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"columns":[{"column":1,"header_ids":["id"]},{"column":2,"header_ids":["results","week1"]},{"column":3,"header_ids":["results","week2"]}],"missing_bottom_headers":[1]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}