{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://data.publicinformation.ie/schemas/who-does-what.schema.json",
  "title": "Who Does What Link",
  "description": "A link from an Irish public body to its gov.ie 'Who Does What' plain-English description of its functions",
  "type": "object",
  "properties": {
    "@id": {"type": "string", "format": "uri", "description": "Persistent URI for this Who Does What link record"},
    "@type": {"type": "string", "const": "wdw:WhoDoesWhatLink"},
    "@context": {"type": "object"},
    "public_body": {"type": "string", "format": "uri", "description": "URI of the public body this link belongs to (the same @id published in the public-bodies dataset)"},
    "wdw_slug": {"type": "string", "description": "gov.ie's own URL slug for the body, preserved as an alias — not used to rename our canonical slug"},
    "wdw_url": {"type": "string", "format": "uri", "description": "Link to the body's Who Does What page on gov.ie"}
  },
  "required": ["@id", "@type", "public_body", "wdw_slug", "wdw_url"]
}
