{"openapi":"3.1.0","info":{"title":"Project x402 SchemaCheck Agent","description":"Validate JSON payloads against JSON Schema. POST /v1/schema-check requires x402 USDC micropayment ($0.002). POST /v1/schema-check/trial is free, no repair suggestions, 32KB limit.","version":"0.3.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}},"head":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/v1/stats":{"get":{"summary":"Call counts for this session","operationId":"stats_v1_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Stats V1 Stats Get"}}}}}}},"/v1/schema-check":{"post":{"summary":"Schema Check","operationId":"schema_check_v1_schema_check_post","parameters":[{"name":"X-Payment-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Payment-Token"}},{"name":"X-PAYMENT","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Payment"}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment-Signature"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schema-check/trial":{"post":{"summary":"Trial - no payment required","description":"Free trial endpoint. No x402 payment required. Repair suggestions are disabled. Request body must not exceed 32KB. Use POST /v1/schema-check for full access including repair suggestions.","operationId":"schema_check_trial_v1_schema_check_trial_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"service":{"type":"string","title":"Service"},"version":{"type":"string","title":"Version"}},"type":"object","required":["status","service","version"],"title":"HealthResponse"},"ResponseMeta":{"properties":{"strictness":{"$ref":"#/components/schemas/Strictness"},"repair_attempted":{"type":"boolean","title":"Repair Attempted"},"engine":{"type":"string","title":"Engine","default":"jsonschema"},"schema_draft":{"type":"string","title":"Schema Draft","default":"auto"}},"type":"object","required":["strictness","repair_attempted"],"title":"ResponseMeta"},"SchemaCheckRequest":{"properties":{"json_schema":{"type":"object","title":"Json Schema","description":"JSON Schema used to validate payload"},"payload":{"title":"Payload","description":"JSON payload to validate"},"strictness":{"$ref":"#/components/schemas/Strictness","default":"normal"},"repair":{"type":"boolean","title":"Repair","default":false},"explain":{"type":"boolean","title":"Explain","default":true}},"type":"object","required":["json_schema","payload"],"title":"SchemaCheckRequest"},"SchemaCheckResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"errors":{"items":{"$ref":"#/components/schemas/ValidationErrorDetail"},"type":"array","title":"Errors"},"summary":{"type":"string","title":"Summary"},"suggested_payload":{"anyOf":[{},{"type":"null"}],"title":"Suggested Payload"},"confidence":{"type":"number","title":"Confidence"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"type":"object","required":["valid","errors","summary","confidence","meta"],"title":"SchemaCheckResponse"},"Strictness":{"type":"string","enum":["strict","normal","lenient"],"title":"Strictness"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValidationErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"path":{"type":"string","title":"Path"},"schema_path":{"type":"string","title":"Schema Path"},"expected":{"anyOf":[{},{"type":"null"}],"title":"Expected"},"actual":{"anyOf":[{},{"type":"null"}],"title":"Actual"}},"type":"object","required":["code","message","path","schema_path"],"title":"ValidationErrorDetail"}}}}