{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://policywatcher.online/schemas/change-event-feed/v1","title":"PolicyWatcher public change event polling feed","type":"object","required":["schema","schemaVersion","mode","locale","count","limit","hasMore","initialWindowTruncated","nextCursor","events","boundary"],"properties":{"schema":{"const":"https://policywatcher.online/schemas/change-event-feed/v1"},"schemaVersion":{"const":"1.0.0"},"mode":{"const":"forward-polling"},"locale":{"enum":["en","it"]},"count":{"type":"integer","minimum":0,"maximum":100},"limit":{"type":"integer","minimum":1,"maximum":100},"hasMore":{"type":"boolean"},"initialWindowTruncated":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"events":{"type":"array","maxItems":100,"items":{"type":"object","required":["eventId","eventType","schemaVersion","occurredAt","subject","screening","links"],"properties":{"eventId":{"type":"string","pattern":"^pwe_[a-f0-9]{20}$"},"eventType":{"const":"policy.change.published"},"schemaVersion":{"const":"1.0.0"},"occurredAt":{"type":"string","format":"date-time"},"subject":{"type":"object"},"screening":{"type":"object"},"links":{"type":"object"}},"additionalProperties":false}},"boundary":{"type":"string"}},"additionalProperties":false}