{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://data.publicinformation.ie/schemas/motions.schema.json",
  "title": "Motion",
  "description": "A motion moved at a meeting of an Irish local authority, as recorded in the published meeting minutes",
  "type": "object",
  "properties": {
    "@id": {"type": "string", "format": "uri", "description": "Persistent URI for this motion record"},
    "@type": {"type": "string", "const": "mot:Motion"},
    "@context": {"type": "object"},
    "public_body": {"type": "string", "format": "uri", "description": "URI of the public body whose meeting this motion was moved at (the same @id published in the public-bodies dataset)"},
    "public_body_id": {"type": "integer", "description": "Internal public_body_id of the body, retained for joins"},
    "motion_id": {"type": "string", "description": "Canonical motion identifier, <body slug>/<meeting date>/m<NNN>"},
    "municipal_district": {"type": "string", "description": "Municipal district the motion was moved in; absent for full-council meetings"},
    "meeting_date": {"type": "string", "format": "date", "description": "Date of the meeting at which the motion was moved (YYYY-MM-DD)"},
    "meeting_type": {"type": "string", "enum": ["council", "municipal_district"], "description": "Whether the motion was moved at a full-council meeting (council) or a municipal district meeting (municipal_district)"},
    "source_file_url": {"type": "string", "format": "uri", "description": "URL of the source meeting minutes file the motion was extracted from"},
    "motion_text": {"type": "string", "description": "The motion as recorded in the minutes"},
    "proposer": {"type": "string", "description": "Councillor who proposed the motion; may be absent if not recorded"},
    "seconder": {"type": "string", "description": "Councillor who seconded the motion; may be absent if not recorded"},
    "status": {"type": "string", "enum": ["carried", "carried_as_amended", "not_carried", "withdrawn", "deferred", "not_recorded"], "description": "Outcome of the motion, one of the terms in the motion-status vocabulary"}
  },
  "required": ["@id", "@type", "public_body", "public_body_id", "motion_id", "meeting_date", "meeting_type", "source_file_url", "motion_text", "status"]
}