{"openapi":"3.1.0","info":{"title":"Translation Placeholder Contract","version":"1.0.0","description":"Check translated UI strings for missing, extra or repeated template tokens without interpreting the translated text.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/translation-placeholder-contract/v1/check":{"post":{"operationId":"translation_placeholder_contract","summary":"Check translated UI strings for missing, extra or repeated template tokens without interpreting the translated text.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"maxItems":120,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"source":{"type":"string","maxLength":1500},"translation":{"type":"string","maxLength":1500}},"required":["key","source","translation"],"additionalProperties":false}}},"required":["messages"],"additionalProperties":false},"example":{"messages":[{"key":"cart","source":"{name}: {count} items","translation":"{count} articles pour {name}"},{"key":"error","source":"{id} is invalid","translation":"Erreur {id} ({id})"}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"matches":false,"issues":[{"key":"error","token":"id","expected":1,"actual":2}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}