{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://data.publicinformation.ie/schemas/lobbying-ie-links.schema.json",
  "title": "lobbying.ie Link",
  "description": "A link from an Irish public body to its page on lobbying.ie, Ireland's Register of Lobbying",
  "type": "object",
  "properties": {
    "@id": {"type": "string", "format": "uri", "description": "Persistent URI for this lobbying.ie link record"},
    "@type": {"type": "string", "const": "lil:LobbyingIeLink"},
    "@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)"},
    "lobbyingie_id": {"type": "integer", "description": "lobbying.ie's own numeric ID for the public body"},
    "lobbyingie_url": {"type": "string", "format": "uri", "description": "Link to the body's filtered search results on lobbying.ie"},
    "lobbyingie_returns_count": {"type": ["integer", "null"], "minimum": 0, "description": "Number of lobbying returns naming this body, as of the pipeline run that produced this record; null if that body's Search call failed"}
  },
  "required": ["@id", "@type", "public_body", "lobbyingie_id", "lobbyingie_url", "lobbyingie_returns_count"]
}
