{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://otranspo.ca/schemas/public-api/v1/policy-register","type":"object","properties":{"schema":{"const":"https://otranspo.ca/schemas/public-api/v1/policy-register"},"schemaVersion":{"const":"1.0.0"},"evaluatedAt":{"type":"string","format":"date-time"},"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["terms","privacy","accessibility","community","api","funding","vulnerability","data-licences"]},"revision":{"type":"string"},"publicationState":{"type":"string","enum":["draft-authority-pending","published"]},"effectiveOn":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"publicPath":{"type":"object","properties":{"en":{"type":"string"},"fr":{"type":"string"}},"required":["en","fr"],"additionalProperties":true},"ownerRole":{"type":"string"},"reviewedOn":{"type":"string","format":"date"},"reviewBy":{"type":"string","format":"date"},"plainLanguageReview":{"type":"string","enum":["pending-human-review","passed"]},"legalReview":{"type":"string","enum":["pending-counsel","approved"]},"decisionEvidence":{"anyOf":[{"type":"string"},{"type":"null"}]},"notificationRequired":{"type":"boolean"},"notificationEvidence":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceMapped":{"type":"boolean"},"vendorEvidenceMapped":{"type":"boolean"},"blockers":{"type":"array","items":{"type":"string"}}},"required":["id","revision","publicationState","effectiveOn","publicPath","ownerRole","reviewedOn","reviewBy","plainLanguageReview","legalReview","decisionEvidence","notificationRequired","notificationEvidence","sourceMapped","vendorEvidenceMapped","blockers"],"additionalProperties":true}},"recordCount":{"type":"integer","minimum":0},"authorityBoundary":{"type":"string"}},"required":["schema","schemaVersion","evaluatedAt","records","recordCount","authorityBoundary"],"additionalProperties":true,"title":"policy-register response schema","x-api-version":"1.0.0"}