{"openapi":"3.1.0","info":{"title":"JUnit Import Reconciler","version":"1.0.0","description":"Reconcile TestRail results against one JUnit report or a batch of CI shard reports. Requires explicit test_id case mappings and reports missing and extra results by case and status.","contact":{"name":"Jeremy Carter","email":"jeremy@jeremycarter.ca"},"x-guidance":"Start with the free example at /example. POST its request as JSON to /v1/reconcile. An unsigned request quotes 0.02 USDC on Base. Use redacted reports. The service makes no TestRail calls and records no submitted reports."},"components":{"schemas":{"ComparisonResult":{"type":"object","properties":{"matches":{"type":"boolean"},"source_cases":{"type":"integer","minimum":0,"maximum":9007199254740991},"unmapped_cases":{"type":"integer","minimum":0,"maximum":9007199254740991},"expected_rows":{"type":"integer","minimum":0,"maximum":9007199254740991},"observed_rows":{"type":"integer","minimum":0,"maximum":9007199254740991},"discrepancies":{"type":"array","items":{"type":"object","properties":{"case_id":{"type":"integer","minimum":0,"maximum":9007199254740991},"status_id":{"type":"integer","minimum":0,"maximum":9007199254740991},"expected":{"type":"integer","minimum":0,"maximum":9007199254740991},"observed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["case_id","status_id","expected","observed"],"additionalProperties":false}}},"required":["matches","source_cases","unmapped_cases","expected_rows","observed_rows","discrepancies"],"additionalProperties":false}}},"paths":{"/v1/reconcile":{"post":{"operationId":"reconcile_junit","summary":"Reconcile TestRail results against one JUnit report or a batch of CI shard reports. Requires explicit test_id case mappings and reports missing and extra results by case and status.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["observed"],"additionalProperties":false,"oneOf":[{"required":["junit_xml"]},{"required":["junit_reports"]}],"properties":{"junit_xml":{"type":"string","maxLength":200000},"junit_reports":{"type":"array","minItems":1,"maxItems":32,"items":{"type":"string","maxLength":200000}},"observed":{"type":"array","maxItems":1000,"items":{"type":"object","required":["case_id","status_id"],"additionalProperties":false,"properties":{"case_id":{"type":"integer","minimum":1},"status_id":{"type":"integer","minimum":1}}}},"skipped_status":{"type":"integer","minimum":1,"default":4}}},"example":{"junit_xml":"<testsuite><testcase name=\"smoke\"><properties><property name=\"test_id\" value=\"C101\"/></properties></testcase></testsuite>","observed":[{"case_id":101,"status_id":1}]}}}},"responses":{"200":{"description":"Reconciliation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonResult"},"example":{"matches":true,"source_cases":1,"unmapped_cases":0,"expected_rows":1,"observed_rows":1,"discrepancies":[]}}}},"400":{"description":"Invalid input"},"402":{"description":"Requires an x402 exact payment of 0.02 USDC on Base"}}}}}}