{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://data.ungovr.org/v1/meta/schema.json","title":"UnGovr Open Data API Schema","definitions":{"entity_index":{"type":"object","required":["slug","name","type","country","url","detail_url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"country":{"type":"string","minLength":2,"maxLength":2},"state":{"type":"string","minLength":2,"maxLength":2},"parent_slug":{"type":"string"},"website":{"type":"string","format":"uri"},"population":{"type":"integer"},"url":{"type":"string","format":"uri"},"detail_url":{"type":"string","format":"uri"}}},"entity_detail":{"type":"object","required":["slug","name","type","country","children_count","geography","url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"country":{"type":"string"},"state":{"type":"string"},"parent":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}}},"children_count":{"type":"integer"},"children_url":{"type":"string","format":"uri"},"domains":{"type":"array","items":{"type":"string"}},"memberships":{"type":"array","items":{"type":"string"}},"geography":{"type":"object","properties":{"has_boundary":{"type":"boolean"},"boundary_url":{"type":"string","format":"uri"}}},"open_records":{"type":"object","properties":{"law":{"type":"string"}}},"population":{"type":"integer"},"website":{"type":"string","format":"uri"},"url":{"type":"string","format":"uri"}}},"cgj_report":{"type":"object","required":["id","document_type","county","year","title","findings","recommendations","url"],"properties":{"id":{"type":"string"},"document_type":{"const":"report"},"county":{"type":"string"},"year":{"type":"string"},"title":{"type":"string"},"grand_jury":{"type":"string"},"summary":{"type":"string"},"findings":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"text":{"type":"string"},"page":{"type":"integer"}}}},"recommendations":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"text":{"type":"string"},"page":{"type":"integer"}}}},"url":{"type":"string","format":"uri"}}}}}