{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "analysis.gaps.schema.json",
  "title": "District achievement gaps (data/analysis/gaps.json)",
  "description": "District-level MCAP proficiency by full subgroup set (large-N bulk LEA file), for the gap view.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "ela_year": { "type": ["string", "null"] },
    "ela": { "$ref": "#/$defs/numMap" },
    "math_year": { "type": ["string", "null"] },
    "math": { "$ref": "#/$defs/numMap" }
  },
  "$defs": {
    "numMap": {
      "type": "object",
      "description": "{subgroup label: proficiency %}",
      "additionalProperties": { "type": ["number", "null"] }
    }
  }
}
