Democracy Works · Schema

Authority

Civic TechElectionsGovernmentNonprofitVoter InformationVoting

Properties

Name Type Description
id string Unique identifier for the election authority.
name string Human-readable name of the authority.
ocd_id string Open Civic Data ID identifying the jurisdiction served.
state string Two-letter U.S. state code.
level string Level of the authority.
contact object
View JSON Schema on GitHub

JSON Schema

democracy-works-authority-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.democracy.works/authority.json",
  "title": "Authority",
  "type": "object",
  "properties": {
    "id": {"type": "string", "description": "Unique identifier for the election authority."},
    "name": {"type": "string", "description": "Human-readable name of the authority."},
    "ocd_id": {"type": "string", "description": "Open Civic Data ID identifying the jurisdiction served."},
    "state": {"type": "string", "description": "Two-letter U.S. state code."},
    "level": {"type": "string", "enum": ["state", "local"], "description": "Level of the authority."},
    "contact": {
      "type": "object",
      "properties": {
        "phone": {"type": "string"},
        "email": {"type": "string", "format": "email"},
        "website": {"type": "string", "format": "uri"}
      }
    }
  },
  "required": ["id", "ocd_id"]
}