{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openpublica-com/json-schema/openpublica-com-topic-activity-schema.json",
  "title": "TopicActivity",
  "description": "Observation activity only, not positions. Meetings deduplicate by government/meeting across propositions. Government count includes partial evidence; matching_meeting_count counts complete projected meetings only.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openpublica-com-openapi.json#/components/schemas/TopicActivity",
  "type": "object",
  "required": [
    "topic_key",
    "label",
    "observation_count",
    "partial_observation_count",
    "matching_meeting_count",
    "government_count"
  ],
  "properties": {
    "topic_key": {
      "type": "string",
      "description": "Alphanumeric NFKC-casefolded subject; spacing/punctuation variants agree, synonyms do not."
    },
    "label": {
      "type": "string",
      "description": "Lexical minimum normalized subject among matching observations."
    },
    "observation_count": {
      "type": "integer",
      "minimum": 0
    },
    "partial_observation_count": {
      "type": "integer",
      "minimum": 0
    },
    "matching_meeting_count": {
      "type": "integer",
      "minimum": 0
    },
    "government_count": {
      "type": "integer",
      "minimum": 0
    }
  }
}