{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spatialindia-com/json-schema/spatialindia-com-indicator-list-schema.json",
  "title": "IndicatorList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spatialindia-com-openapi.json#/components/schemas/IndicatorList",
  "type": "object",
  "properties": {
    "meta": {
      "$ref": "#/$defs/CatalogueMeta"
    },
    "total": {
      "type": "integer",
      "description": "Matches before paging."
    },
    "count": {
      "type": "integer",
      "description": "Entries in this page."
    },
    "indicators": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Indicator"
      }
    }
  },
  "required": [
    "meta",
    "total",
    "count",
    "indicators"
  ],
  "$defs": {
    "CatalogueMeta": {
      "type": "object",
      "description": "The `meta` block of `/v1/indicators`. It has no `indicators` key — the response body is that.",
      "properties": {
        "dataset_version": {
          "type": "string"
        },
        "boundary_vintage": {
          "type": "string"
        },
        "districts": {
          "type": "integer"
        },
        "attribution": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "citation": {
          "type": "string"
        }
      },
      "required": [
        "dataset_version",
        "boundary_vintage",
        "districts",
        "attribution",
        "citation"
      ]
    },
    "Indicator": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Stable. A published id is never reused or removed."
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_key": {
          "type": [
            "string",
            "null"
          ]
        },
        "vintage": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "polarity": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "higher-better",
            "higher-worse",
            "neutral",
            null
          ]
        },
        "caveat": {
          "type": [
            "string",
            "null"
          ]
        },
        "estimation_method": {
          "type": [
            "string",
            "null"
          ]
        },
        "coverage": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many districts carry a value. The rest are `null`, not zero."
        },
        "zero_districts": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many of `coverage` are exactly 0. Read it before ranking ascending: `ncrb_sll_dv_cases` is 0 in 734 of 769 districts because the act is barely used, so the \"best\" tail is under-reporting, not safety."
        },
        "status": {
          "type": "string",
          "enum": [
            "published",
            "deprecated"
          ]
        },
        "replaced_by": {
          "type": "string",
          "description": "Present only on a deprecated indicator that has a successor."
        }
      },
      "required": [
        "id",
        "name",
        "category",
        "status"
      ]
    }
  }
}