{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://otranspo.ca/schemas/public-api/v1/incidents","type":"object","properties":{"schema":{"const":"https://otranspo.ca/schemas/public-api/v1/incidents"},"schemaVersion":{"const":"1.0.0"},"status":{"type":"string","enum":["available","unavailable"]},"evaluatedAt":{"type":"string","format":"date-time"},"records":{"type":"array","items":{"type":"object","properties":{"publicId":{"type":"string"},"slug":{"type":"string"},"severity":{"type":"string","enum":["minor","moderate","major","critical"]},"publishedAt":{"type":"string","format":"date-time"},"currentState":{"type":"string","enum":["investigating","identified","monitoring","resolved"]},"title":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"impact":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"scope":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"fallback":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},{"type":"null"}]},"affectedFunctions":{"type":"array","items":{"type":"string"}},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","enum":["investigating","identified","monitoring","resolved"]},"publishedAt":{"type":"string","format":"date-time"},"message":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"updatePromise":{"type":"object","properties":{"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"fulfilledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"state":{"type":"string","enum":["not_promised","pending","met","missed","overdue"]}},"required":["dueAt","fulfilledAt","state"],"additionalProperties":true}},"required":["id","state","publishedAt","message","updatePromise"],"additionalProperties":true}},"resolution":{"anyOf":[{"type":"object","properties":{"resolvedAt":{"type":"string","format":"date-time"},"summary":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true}},"required":["resolvedAt","summary"],"additionalProperties":true},{"type":"null"}]},"postmortem":{"anyOf":[{"type":"object","properties":{"publishedAt":{"type":"string","format":"date-time"},"summary":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"whatHappened":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"riderImpact":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"limitations":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"corrections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"paths":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true}},"required":["id","label","paths"],"additionalProperties":true}},"followUps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"status":{"type":"string","enum":["open","in_progress","complete"]},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","description","status","completedAt"],"additionalProperties":true}}},"required":["publishedAt","summary","whatHappened","riderImpact","limitations","corrections","followUps"],"additionalProperties":true},{"type":"null"}]},"postmortemPaths":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},{"type":"null"}]}},"required":["publicId","slug","severity","publishedAt","currentState","title","impact","scope","fallback","affectedFunctions","updates","resolution","postmortem","postmortemPaths"],"additionalProperties":true}}},"required":["schema","schemaVersion","status","evaluatedAt","records"],"additionalProperties":true,"title":"incidents response schema","x-api-version":"1.0.0"}