{"openapi":"3.1.0","info":{"title":"Field Lineage Impact","version":"1.0.0","description":"Trace directly and transitively affected fields after upstream changes, reporting shortest dependency distance and contributing changed fields.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/field-lineage-impact/v1/check":{"post":{"operationId":"field_lineage_impact","summary":"Trace directly and transitively affected fields after upstream changes, reporting shortest dependency distance and contributing changed fields.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changed_fields":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"edges":{"maxItems":350,"type":"array","items":{"type":"object","properties":{"source":{"type":"string","minLength":1,"maxLength":120},"downstream":{"type":"string","minLength":1,"maxLength":120}},"required":["source","downstream"],"additionalProperties":false}}},"required":["changed_fields","edges"],"additionalProperties":false},"example":{"changed_fields":["raw.tax","raw.amount"],"edges":[{"source":"raw.tax","downstream":"clean.total"},{"source":"raw.amount","downstream":"clean.total"},{"source":"clean.total","downstream":"dash.sales"},{"source":"clean.total","downstream":"raw.tax"},{"source":"raw.sku","downstream":"dash.count"}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"affected":[{"field":"clean.total","distance":1,"from":["raw.tax","raw.amount"]},{"field":"dash.sales","distance":2,"from":["raw.tax","raw.amount"]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}