{"openapi":"3.1.0","info":{"title":"Changed Line Coverage","version":"1.0.0","description":"Measure coverage only for executable added or edited lines and report uncovered line ranges per file.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/changed-line-coverage/v1/check":{"post":{"operationId":"changed_line_coverage","summary":"Measure coverage only for executable added or edited lines and report uncovered line ranges per file.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"minimum_coverage_bps":{"type":"integer","minimum":0,"maximum":10000},"files":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":160},"changes":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"first":{"type":"integer","minimum":1,"maximum":100000000},"last":{"type":"integer","minimum":1,"maximum":100000000}},"required":["first","last"],"additionalProperties":false}},"executable":{"maxItems":400,"type":"array","items":{"type":"object","properties":{"line":{"type":"integer","minimum":1,"maximum":100000000},"hits":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["line","hits"],"additionalProperties":false}}},"required":["path","changes","executable"],"additionalProperties":false}}},"required":["minimum_coverage_bps","files"],"additionalProperties":false},"example":{"minimum_coverage_bps":7500,"files":[{"path":"main.py","changes":[{"first":4,"last":9}],"executable":[{"line":3,"hits":7},{"line":4,"hits":2},{"line":7,"hits":0},{"line":8,"hits":0}]},{"path":"index.py","changes":[{"first":1,"last":2}],"executable":[{"line":1,"hits":1}]}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"decision":"below_threshold","changed_executable":4,"changed_covered":2,"coverage_bps":5000,"files":[{"path":"main.py","changed_executable":3,"changed_covered":1,"uncovered":[{"first":7,"last":8}]},{"path":"index.py","changed_executable":1,"changed_covered":1,"uncovered":[]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}