{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "School roster (slim)",
  "description": "One record per school: the enumerable join spine for every other file in the bundle. code is the 3-digit zero-padded MCPS school code used everywhere.",
  "type": "array",
  "minItems": 200,
  "items": {
    "type": "object",
    "additionalProperties": false,
    "required": ["code", "name", "type", "cluster", "lat", "lon"],
    "properties": {
      "code": {"type": "string", "pattern": "^\\d{3}$"},
      "name": {"type": "string", "minLength": 1},
      "type": {
        "type": ["string", "null"],
        "enum": ["ES", "MS", "HS", "SE", "SP", "SS", null],
        "description": "ES/MS/HS; SE/SP/SS are special schools; null for a few non-standard entries"
      },
      "cluster": {"type": ["string", "null"]},
      "lat": {"type": ["number", "null"]},
      "lon": {"type": ["number", "null"]}
    }
  }
}
