{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://api.redlineautohaus.com/docs/uds/schemas/fact-request.json","type":"object","properties":{"subject_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},{"type":"null"}]},"property":{"type":"string","minLength":1,"maxLength":191},"value_state":{"type":"string","enum":["present","unknown","not_reported","not_applicable","redacted","unreadable","empty"]},"value_type":{"type":"string","enum":["string","number","decimal","integer","boolean","object","array"]},"value":{"type":["string","number","boolean","object","array","null"],"maxLength":8192,"maxItems":256,"maxProperties":256},"units":{"type":"string","minLength":1,"maxLength":191},"origin":{"type":"string","enum":["unknown","source_reported","manual_transcription","manual_interpretation","ai_transcription","ai_interpretation","deterministic_extraction","decoder","reviewer"]},"evidence_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},{"type":"null"}]},"observed_at":{"type":"object","properties":{"raw":{"type":"string","minLength":1,"maxLength":256},"normalized_utc":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?Z$"},"timezone":{"type":"string","minLength":1,"maxLength":128},"precision":{"type":"string","minLength":1,"maxLength":32},"clock_domain":{"type":"string","minLength":1,"maxLength":128},"conversion_method":{"type":"string","minLength":1,"maxLength":256},"relative_nanoseconds":{"type":"string","pattern":"^-?[0-9]+(?:\\.[0-9]+)?$","maxLength":80},"accuracy":{"type":"string","minLength":1,"maxLength":128}},"required":[],"additionalProperties":false},"confidence":{"type":"number","minimum":0,"maximum":1},"extensions":{"type":"object","maxProperties":32,"propertyNames":{"pattern":"^[a-z][a-z0-9_.-]{0,127}$"},"additionalProperties":{"type":"object","properties":{"schema_version":{"type":"string","minLength":1,"maxLength":32},"data":{"type":"object","maxProperties":256}},"required":["schema_version","data"],"additionalProperties":false}}},"required":["subject_id","property","value_state","origin","evidence_id"],"additionalProperties":false}