{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://otranspo.ca/schemas/public-api/v1/share-snapshot","type":"object","properties":{"schema":{"const":"https://otranspo.ca/schemas/public-api/v1/share-snapshot"},"schemaVersion":{"const":"1.0.0"},"state":{"type":"string","enum":["invalid_identifier","not_found","active","corrected","withdrawn","expired","temporarily_unavailable"]},"snapshotId":{"type":"string"},"canonicalPath":{"type":"string"},"locale":{"type":"string","enum":["en","fr"]},"subject":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":true},"revision":{"type":"string"},"publishedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"corrected":{"type":"boolean"},"correction":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string"}},"required":["reason"],"additionalProperties":true},{"type":"null"}]},"metricReferences":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}},"sourceReferences":{"type":"array","items":{"type":"string"}},"contentSha256":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"evidence":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"null"}]},"withdrawalCode":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["schema","schemaVersion","state"],"additionalProperties":true,"title":"share-snapshot response schema","x-api-version":"1.0.0"}