{"openapi":"3.1.0","info":{"title":"Tabular Reader Compatibility","version":"1.0.0","description":"Check whether name-based readers can consume candidate table values under strict primitive typing with integer-to-number widening.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/tabular-reader-compatibility/v1/check":{"post":{"operationId":"tabular_reader_compatibility","summary":"Check whether name-based readers can consume candidate table values under strict primitive typing with integer-to-number widening.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reader":{"minItems":1,"maxItems":150,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["integer","number","string","boolean"]},"required":{"type":"boolean"},"nullable":{"type":"boolean"}},"required":["name","type","required","nullable"],"additionalProperties":false}},"candidate":{"maxItems":150,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["integer","number","string","boolean"]},"required":{"type":"boolean"},"nullable":{"type":"boolean"}},"required":["name","type","required","nullable"],"additionalProperties":false}}},"required":["reader","candidate"],"additionalProperties":false},"example":{"reader":[{"name":"id","type":"integer","required":true,"nullable":false},{"name":"amount","type":"number","required":true,"nullable":false},{"name":"comment","type":"string","required":false,"nullable":true}],"candidate":[{"name":"id","type":"number","required":false,"nullable":true},{"name":"amount","type":"integer","required":true,"nullable":false},{"name":"region","type":"string","required":true,"nullable":false}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"compatible":false,"issues":[{"name":"id","reason":"may_be_missing"},{"name":"id","reason":"may_be_null"},{"name":"id","reason":"type_mismatch"}],"extra_columns":["region"]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}