{"openapi":"3.1.0","info":{"title":"Metamorphose Civil Diagnostics","version":"1.0.0","description":"Stateless validation of caller-supplied health diagnostics. No tracking or equipment control."},"paths":{"/api/public/integration/normalize":{"post":{"operationId":"normalizeDiagnostics","summary":"Validate health records; stores nothing","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["records"],"properties":{"records":{"type":"array","minItems":1,"maxItems":200,"items":{"$ref":"#/components/schemas/Health"}}}}}}},"responses":{"200":{"description":"Validated UTC records","content":{"application/json":{"schema":{"type":"object","required":["schema","stored","records"],"properties":{"schema":{"const":"metamorphose-diagnostics/v1"},"stored":{"const":false},"records":{"type":"array","items":{"$ref":"#/components/schemas/Health"}}}}}}},"400":{"description":"Invalid health data"},"413":{"description":"Body exceeds 128 KiB"},"415":{"description":"JSON required"}}}}},"components":{"schemas":{"Health":{"type":"object","additionalProperties":false,"required":["schema","device_id","timestamp","status"],"properties":{"schema":{"const":"equipment-health/v1"},"device_id":{"type":"string","minLength":1,"maxLength":128},"timestamp":{"type":"string","format":"date-time"},"status":{"enum":["ok","warning","fault","unknown"]},"battery_pct":{"type":"number","minimum":0,"maximum":100},"temperature_c":{"type":"number","minimum":-273.15,"maximum":10000}}}}}}