{
 "openapi": "3.1.0",
 "info": {
  "title": "Deep Almanac: Victorian government school performance",
  "version": "1.0.0",
  "summary": "Performance Summary measures for every Victorian government secondary school, keyed on school number, with the Department of Education's own Similar Schools comparison.",
  "description": "Every Victorian government school publishes an Annual Report to the School Community whose Performance Summary is generated by the Department of Education: SFOE band, enrolment profile, NAPLAN proficiency and relative growth, VCE completion and mean study score, real retention, exits to further study or full-time work, attendance and the parent, staff and student survey measures. Each measure is published for the School, for the Department's Similar Schools group and for the State, so a school can be compared with schools of similar intake rather than with the whole state.\n\nSchools: 1575. Report years: 2023, 2024, 2025.\n\nEvery file is static JSON; no authentication, no rate limits beyond ordinary CDN behaviour, CORS open. This is reference data, not advice about where to enrol a child.",
  "termsOfService": "https://deepalmanac.com/terms",
  "contact": {
   "name": "Deep Almanac",
   "url": "https://deepalmanac.com"
  },
  "license": {
   "name": "Deep Almanac's own work CC BY 4.0; source data under its own terms, listed in licences in each index.json",
   "url": "https://deepalmanac.com/terms#data-licences"
  }
 },
 "servers": [
  {
   "url": "https://deepalmanac.com"
  }
 ],
 "security": [],
 "tags": [
  {
   "name": "vic-schools",
   "description": "Victorian government school performance",
   "externalDocs": {
    "description": "Page",
    "url": "https://deepalmanac.com/au/education/vic-schools/"
   }
  }
 ],
 "paths": {
  "/au/education/vic-schools/v1/questions.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolsQuestions",
    "summary": "What to ask a reader before answering a school question",
    "description": "Start here. The questions readers ask -- best schools in an area, best VCE or NAPLAN results, how one school compares -- with the inputs to collect first (level, area, and whether 'best' means raw results or results against schools with a similar intake), the file and field that answer each, the figures that are easy to misread (the default ranking is value added, not raw results; selective-entry schools; suppressed values; small-school scaling), and what the dataset does not hold: non-government schools, other states, zones, fees and earlier years.",
    "responses": {
     "200": {
      "description": "What to ask a reader before answering a school question.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolQuestions"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/lga/index.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolLgaIndex",
    "summary": "Every council",
    "description": "Every local government area with a government school: slug, readable name, the register's own name and school count; `url_template` with the slug gives its file.",
    "responses": {
     "200": {
      "description": "Every council.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolAreaIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/lga/{lga_slug}.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolLga",
    "summary": "One council's schools",
    "description": "Every government school in one local government area with its level, type, suburb, enrolment, selective-entry flag and its statewide rank and value on every ranking of its table. Small enough to read whole, unlike rankings.json.",
    "responses": {
     "200": {
      "description": "One council's schools.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolArea"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    },
    "parameters": [
     {
      "name": "lga_slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "From lga/index.json: the council's name without its kind, slugified.",
      "example": "boroondara"
     }
    ]
   }
  },
  "/au/education/vic-schools/v1/suburb/index.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolSuburbIndex",
    "summary": "Every suburb",
    "description": "Every suburb with a government school: slug, name, the councils its schools sit in, school count and school count; `url_template` with the slug gives its file.",
    "responses": {
     "200": {
      "description": "Every suburb.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolAreaIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/suburb/{suburb_slug}.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolSuburb",
    "summary": "One suburb's schools",
    "description": "The same as lga/{lga_slug}.json, for one suburb.",
    "responses": {
     "200": {
      "description": "One suburb's schools.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolArea"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    },
    "parameters": [
     {
      "name": "suburb_slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "From suburb/index.json.",
      "example": "glen-waverley"
     }
    ]
   }
  },
  "/au/education/vic-schools/v1/subjects/index.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolSubjectIndex",
    "summary": "Every VCE study",
    "description": "Every VCE study (114) with its slug, the URL of subjects/{slug}.json, the statewide number of study scores of 40 or above published in 2020-2025, how many government schools offer it and how many had a published score. Start here for 'which school is good at <subject>'.",
    "responses": {
     "200": {
      "description": "Every VCE study.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolSubjectIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/subjects/{slug}.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolSubject",
    "summary": "One VCE study: schools and their published scores of 40 or above",
    "description": "For one study, every government school that offers it or had a study score of 40 or above published on VCAA's honour roll in 2020-2025. `at_a_glance` comes first: the 20 leading government schools, the strongest relative to their other results, the leading other sectors' schools and the statewide totals, in a few kB, for a reader whose fetch stops short of the full file. Then every school: pooled count, each year's count, scores of 50, the count per 100 VCE students and a strength ratio (count against what the school's overall results predict), in default order (most published scores first; schools offering it with none come last). `other_sectors` lists the Catholic, independent and other providers by name and count. `state` has the statewide published and withheld totals. Counts are lower bounds: VCAA lists consenting students only.",
    "responses": {
     "200": {
      "description": "One VCE study: schools and their published scores of 40 or above.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolSubject"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    },
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "From subjects/index.json.",
      "example": "french"
     }
    ]
   }
  },
  "/au/education/vic-schools/v1/index.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolsIndex",
    "summary": "Dataset index",
    "description": "Lists the dataset files, the measures published, the source documents and where the per-school files are (look a school's number up in names/index.json).",
    "responses": {
     "200": {
      "description": "Dataset index.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolsIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/names/index.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolNameIndex",
    "summary": "Every name key",
    "description": "The keys of the names/ files: a lowercase first letter, or the first two letters for a crowded letter, each with its school count and first and last school name.",
    "responses": {
     "200": {
      "description": "Every name key.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolNameIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/names/{key}.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolNames",
    "summary": "Schools by the first letter of their name",
    "description": "Every school whose name starts with `key`: school number, name, slug, suburb, level and type, under 30 kB. Use it to find the school number for schools/{school_no}.json.",
    "responses": {
     "200": {
      "description": "Schools by the first letter of their name.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolNames"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    },
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "From names/index.json: the name's first letter, lowercased, or its first two letters where the index splits that letter.",
      "example": "a"
     }
    ]
   }
  },
  "/au/education/vic-schools/v1/schools.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchools",
    "summary": "Every school",
    "description": "Every school with its register identity, enrolment profile and all Performance Summary measures.",
    "responses": {
     "200": {
      "description": "Every school.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchools"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/rankings.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolRankings",
    "summary": "Every ranking",
    "description": "Rankings under `tables.secondary`, `tables.primary` and `tables.specialist`, each an ordered list of schools, after `table_notes`, which says what each table's default ranking measures (value added relative to intake, not raw results) and which rankings are raw results. About 15 MB; for one area read lga/{lga_slug}.json or suburb/{suburb_slug}.json. Secondary: similar_schools_adjusted, similar_schools_index, study_score, vce_completion, retention, exits, naplan_year_9, wellbeing, attendance, enrolment_growth, study_scores_40_plus, median_study_score, parent_satisfaction, parent_satisfaction_gap, staff_climate, similar_schools_advantage. Primary: similar_schools_adjusted, similar_schools_index, naplan_year_5, naplan_year_3, naplan_growth_3_5, teacher_judgement_primary, wellbeing, attendance, enrolment_growth, parent_satisfaction, parent_satisfaction_gap, staff_climate, similar_schools_advantage. A combined (P-12) school appears in both.",
    "responses": {
     "200": {
      "description": "Every ranking.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolRankings"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/education/vic-schools/v1/schools/{school_no}.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchool",
    "summary": "One school",
    "description": "One school's full record under `school`, addressed by its Department of Education school number, with the dataset's provenance alongside it.",
    "responses": {
     "200": {
      "description": "One school.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolFile"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    },
    "parameters": [
     {
      "name": "school_no",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "Department of Education school number, as listed in names/{key}.json.",
      "example": "1886"
     }
    ]
   }
  },
  "/au/education/vic-schools/v1/openapi.json": {
   "get": {
    "tags": [
     "vic-schools"
    ],
    "operationId": "getVicSchoolsOpenapi",
    "summary": "This document",
    "description": "OpenAPI 3.1 description of this dataset's files (https://deepalmanac.com/openapi.json lists every dataset's document).",
    "responses": {
     "200": {
      "description": "This document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VicSchoolsIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "VicSchoolSubjectResult": {
    "type": "object",
    "description": "One study's published scores of 40 or above at one school, pooled over the years.",
    "properties": {
     "study": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "offered": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether VCAA's Studies Search lists the school as offering the study; null for a study the search does not list (VCE VET)."
     },
     "published_40_plus": {
      "type": "integer",
      "description": "Lower bound: consenting students only."
     },
     "by_year": {
      "type": "object",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "scores_of_50": {
      "type": "integer"
     },
     "premiers_awards": {
      "type": "integer",
      "description": "Premier's VCE Study Awards the school's students won in the study over premiers_awards_years (study score of 46 or above and among the best few statewide)."
     },
     "strength_ratio": {
      "type": [
       "number",
       "null"
      ],
      "description": "published_40_plus divided by what the school's total published scores of 40 or above and the study's statewide share predict; null when both the count and the expected count are under 3."
     },
     "per_100_vce_students": {
      "type": [
       "number",
       "null"
      ],
      "description": "published_40_plus over the years the school has a VCE cohort figure, per 100 students of that cohort."
     }
    }
   },
   "VicSchoolSubjectSchool": {
    "allOf": [
     {
      "$ref": "#/components/schemas/VicSchoolSubjectResult"
     }
    ],
    "type": "object",
    "description": "A government school's row in a subject file: the result fields plus the school's identity, latest VCE cohort and overall results, focus tags, page and JSON URLs.",
    "properties": {
     "school_no": {
      "type": "string"
     },
     "school_name": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "suburb": {
      "type": [
       "string",
       "null"
      ]
     },
     "lga": {
      "type": [
       "string",
       "null"
      ]
     },
     "level": {
      "type": [
       "string",
       "null"
      ]
     },
     "vce_students_latest": {
      "type": [
       "number",
       "null"
      ]
     },
     "study_scores_40_plus_percent_latest": {
      "type": [
       "number",
       "null"
      ]
     },
     "median_study_score_latest": {
      "type": [
       "number",
       "null"
      ]
     },
     "premiers_awards_by_year": {
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "type": "integer"
      },
      "description": "null when the school won no award in the study."
     },
     "focus_tags": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "page": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri"
     },
     "json": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri"
     }
    }
   },
   "VicSchoolSubject": {
    "type": "object",
    "description": "One VCE study: statewide totals, every government school that offers it or had a published score of 40 or above, and the other sectors' providers by name.",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "at_a_glance": {
      "type": "object",
      "description": "First in the file: the 20 leading government schools in default order, the 10 strongest by strength_ratio, the 10 leading other sectors' schools, the statewide published and withheld totals and how many schools offer the study, so the head of the file answers on its own. The full lists are schools and other_sectors.",
      "properties": {
       "study": {
        "type": "string"
       },
       "years": {
        "type": [
         "string",
         "null"
        ]
       },
       "published_40_plus_statewide": {
        "type": [
         "integer",
         "null"
        ]
       },
       "withheld_40_plus_statewide": {
        "type": [
         "integer",
         "null"
        ]
       },
       "government_schools_offering": {
        "type": [
         "integer",
         "null"
        ]
       },
       "government_schools_with_40_plus": {
        "type": "integer"
       },
       "other_sectors_with_40_plus": {
        "type": "integer"
       },
       "leading_government_schools": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "leading_government_schools_order": {
        "type": "string"
       },
       "strongest_relative_to_their_other_results": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "leading_other_sectors": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "counts_are": {
        "type": "string"
       },
       "full_lists": {
        "type": "string"
       }
      }
     },
     "study": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "years": {
      "type": "array",
      "items": {
       "type": "integer"
      }
     },
     "search_names": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "The Studies Search names folded into this subject."
     },
     "state": {
      "type": "object",
      "properties": {
       "published_40_plus": {
        "type": "integer"
       },
       "withheld_40_plus": {
        "type": [
         "integer",
         "null"
        ],
        "description": "Scores whose students did not consent, summed over withheld_years."
       },
       "withheld_years": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "by_year": {
        "type": "object",
        "additionalProperties": {
         "type": "object",
         "properties": {
          "published": {
           "type": "integer"
          },
          "withheld": {
           "type": [
            "integer",
            "null"
           ]
          }
         }
        }
       },
       "share_of_all_published_40_plus": {
        "type": [
         "number",
         "null"
        ]
       },
       "premiers_awards": {
        "type": "integer",
        "description": "Premier's VCE Study Awards given in the study, every sector."
       },
       "premiers_awards_by_year": {
        "type": "object",
        "additionalProperties": {
         "type": "integer"
        }
       }
      }
     },
     "premiers_awards_years": {
      "type": "array",
      "items": {
       "type": "integer"
      },
      "description": "The years of Premier's VCE Awards counted."
     },
     "providers": {
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "type": "integer"
      },
      "description": "Providers of the study per sector per VCAA's Studies Search; null when the search does not list the study."
     },
     "schools": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/VicSchoolSubjectSchool"
      }
     },
     "other_sectors": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "school_name": {
         "type": "string"
        },
        "sector": {
         "type": "string"
        },
        "suburb": {
         "type": [
          "string",
          "null"
         ]
        },
        "campuses": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         },
         "description": "The suburbs of the school's campuses when the roll names more than one; their counts are summed. Null otherwise."
        },
        "published_40_plus": {
         "type": "integer"
        },
        "by_year": {
         "type": "object",
         "additionalProperties": {
          "type": "integer"
         }
        },
        "premiers_awards": {
         "type": "integer"
        },
        "premiers_awards_by_year": {
         "type": [
          "object",
          "null"
         ],
         "additionalProperties": {
          "type": "integer"
         }
        }
       }
      }
     },
     "default_order": {
      "type": "string"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    },
    "required": [
     "at_a_glance",
     "study",
     "slug",
     "years",
     "state",
     "schools",
     "other_sectors"
    ]
   },
   "VicSchoolSubjectIndex": {
    "type": "object",
    "description": "Every VCE study with the URL and page of its file.",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "years": {
      "type": "array",
      "items": {
       "type": "integer"
      }
     },
     "url_template": {
      "type": "string"
     },
     "page_template": {
      "type": "string"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "studies": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "study": {
         "type": "string"
        },
        "slug": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        },
        "page": {
         "type": "string",
         "format": "uri"
        },
        "published_40_plus": {
         "type": "integer"
        },
        "government_offering": {
         "type": [
          "integer",
          "null"
         ]
        },
        "government_with_40_plus": {
         "type": "integer"
        },
        "other_sectors_with_40_plus": {
         "type": "integer"
        }
       }
      }
     }
    },
    "required": [
     "studies"
    ]
   },
   "VicSchoolSeniorSecondary": {
    "type": "object",
    "description": "One year of VCAA senior secondary results for a school, with the evidence for the link.",
    "properties": {
     "median_study_score": {
      "type": [
       "number",
       "null"
      ],
      "description": "Median VCE study score; the state-wide average is 30."
     },
     "study_scores_40_plus_percent": {
      "type": [
       "number",
       "null"
      ],
      "description": "Share of this school's study scores at 40 or above."
     },
     "satisfactory_vce_completions_percent": {
      "type": [
       "number",
       "null"
      ]
     },
     "vtac_applications_percent": {
      "type": [
       "number",
       "null"
      ],
      "description": "Share of VCE students applying for tertiary places through VTAC; a low figure marks a school whose senior students mostly take vocational pathways."
     },
     "vce_students": {
      "type": [
       "number",
       "null"
      ]
     },
     "vcaa_school": {
      "type": "string",
      "description": "The school's name as SSCAI writes it."
     },
     "match_score": {
      "type": "number",
      "description": "0-1 confidence of the name match to VCAA's provider list; the step from there to the school number is an exact phone match."
     },
     "completion_agreement": {
      "type": [
       "number",
       "null"
      ],
      "description": "SSCAI's satisfactory-completion percentage minus the Annual Report's completion rate for the same year, as a check on the link. Null when either is suppressed or the report covers another year. Small values confirm the link; the two measures are defined slightly differently, so they are close, not identical."
     }
    }
   },
   "VicSchoolReading": {
    "type": "object",
    "description": "One reading of a measure: the school's value and, where the Department publishes them, its Similar Schools group and the state. `suppressed` explains a withheld school value.",
    "properties": {
     "school": {
      "type": "number"
     },
     "similar_schools": {
      "type": "number"
     },
     "state": {
      "type": "number"
     },
     "suppressed": {
      "type": "string"
     }
    }
   },
   "VicSchool": {
    "type": "object",
    "description": "One Victorian school: register identity, enrolment profile and the Performance Summary measures from its Annual Report, each with the school's, its Similar Schools group's and the state's value.",
    "properties": {
     "school_no": {
      "type": "string",
      "description": "Department of Education school number; the key for this dataset."
     },
     "school_name": {
      "type": "string"
     },
     "slug": {
      "type": "string",
      "description": "URL segment used by this school's page."
     },
     "sector": {
      "type": "string",
      "enum": [
       "Government",
       "Catholic",
       "Independent"
      ]
     },
     "school_type": {
      "type": "string",
      "description": "Secondary, Pri/Sec, Primary, Special or Language."
     },
     "suburb": {
      "type": "string"
     },
     "postcode": {
      "type": "string"
     },
     "state": {
      "type": "string"
     },
     "address": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     },
     "region": {
      "type": "string"
     },
     "area": {
      "type": "string"
     },
     "lga": {
      "type": "string"
     },
     "metro": {
      "type": "boolean",
      "description": "True when the school's local government area is metropolitan."
     },
     "latitude": {
      "type": [
       "number",
       "null"
      ]
     },
     "longitude": {
      "type": [
       "number",
       "null"
      ]
     },
     "report_year": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Year of the Annual Report these measures come from."
     },
     "website": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "The school's own website, as given in its Annual Report. Null where the report does not name one; it is not in the school register."
     },
     "profile": {
      "type": "object",
      "properties": {
       "sfoe_band": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "Low",
         "Low-Medium",
         "Medium",
         "High",
         null
        ],
        "description": "Student Family Occupation and Education band: the Department's measure of socio-educational disadvantage, Low (least) to High (most)."
       },
       "enrolments": {
        "type": [
         "integer",
         "null"
        ]
       },
       "enrolment_year": {
        "type": [
         "integer",
         "null"
        ]
       },
       "enrolments_female": {
        "type": [
         "integer",
         "null"
        ]
       },
       "enrolments_male": {
        "type": [
         "integer",
         "null"
        ]
       },
       "english_additional_language_percent": {
        "type": [
         "number",
         "null"
        ]
       },
       "aboriginal_torres_strait_islander_percent": {
        "type": [
         "number",
         "null"
        ]
       },
       "single_sex": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "girls",
         "boys",
         null
        ],
        "description": "Read from the enrolment counts, not from the school's wording."
       }
      }
     },
     "premiers_vce_awards": {
      "type": [
       "object",
       "null"
      ],
      "description": "Premier's VCE Awards won by the school's students over `years`, from the honour roll on vic.gov.au: `total`, then `study_awards` (study score of 46 or above, best few in the study statewide), `top_all_round` (46 or above in five or more studies), `vocational_major` and `top_international`, each also `by_year`, and `studies[]` with the Study Awards per study. Absent for a school with none. No student is named."
     },
     "vce_subjects": {
      "type": [
       "object",
       "null"
      ],
      "description": "Per-subject VCE results from VCAA's honour roll, for a school that offers any VCE study or had a study score of 40 or above published. `years` pooled, `offered_count` studies the school offers at Units 3 and 4 per VCAA's Studies Search, `published_40_plus_total` across every study, and `studies[]` with each study's `published_40_plus`, `by_year`, `scores_of_50`, `strength_ratio` and `per_100_vce_students` (see subjects/{slug}.json). Counts are lower bounds: only consenting students are listed by VCAA.",
      "properties": {
       "years": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "offered_count": {
        "type": "integer"
       },
       "published_40_plus_total": {
        "type": "integer"
       },
       "studies": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/VicSchoolSubjectResult"
        }
       }
      }
     },
     "measures": {
      "type": "object",
      "description": "Keyed by measure (see `measures` in index.json). Each holds `year`, `average_years` and the `latest` and `average` readings; each reading carries `school`, `similar_schools` and `state` where the Department publishes them, or `suppressed` with the reason when a school's value is withheld.",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "year": {
         "type": [
          "integer",
          "null"
         ]
        },
        "average_years": {
         "type": [
          "integer",
          "null"
         ]
        },
        "latest": {
         "$ref": "#/components/schemas/VicSchoolReading"
        },
        "average": {
         "$ref": "#/components/schemas/VicSchoolReading"
        }
       }
      }
     },
     "attendance_rate": {
      "type": "object",
      "description": "Attendance rate by year level (percent), keyed prep, year_7 ... year_12.",
      "additionalProperties": {
       "type": "number"
      }
     },
     "parent_satisfaction_gap": {
      "type": [
       "number",
       "null"
      ],
      "description": "Parent satisfaction at this school minus the Department's figure for its Similar Schools group, in percentage points; null when either side is unpublished. The measure is not part of similar_schools_advantage at a primary or secondary school."
     },
     "similar_schools_advantage": {
      "type": [
       "number",
       "null"
      ],
      "description": "Mean gap in percentage points between this school and its Similar Schools group across the comparable measures; null when fewer than 6 are published."
     },
     "similar_schools_adjusted": {
      "type": [
       "number",
       "null"
      ],
      "description": "similar_schools_advantage scaled by similar_schools_reliability, so a small school's figure is pulled towards 0. This is the default ranking."
     },
     "similar_schools_reliability": {
      "type": [
       "number",
       "null"
      ],
      "description": "Share of this school's gap that is signal rather than sampling noise, from its enrolment: about 0.36 at 25 students and 0.95 at 800."
     },
     "similar_schools_index": {
      "type": [
       "number",
       "null"
      ],
      "description": "The same gaps, each divided by the standard deviation of that measure's gaps across all schools before averaging, so a measure with a naturally wide spread does not dominate. 0 is level with the Similar Schools group; 1 is one standard deviation above it. This is the ranking the page defaults to."
     },
     "similar_schools_advantage_measures": {
      "type": "array",
      "description": "The measures that contributed, with each gap, the standard deviation used to standardise it and the resulting standardised gap.",
      "items": {
       "type": "object",
       "properties": {
        "measure": {
         "type": "string"
        },
        "basis": {
         "type": "string",
         "enum": [
          "latest",
          "average"
         ]
        },
        "school": {
         "type": "number"
        },
        "similar_schools": {
         "type": "number"
        },
        "gap": {
         "type": "number"
        },
        "gap_sd": {
         "type": "number",
         "description": "Standard deviation of this measure's gaps across all schools."
        },
        "gap_standardised": {
         "type": "number",
         "description": "gap divided by gap_sd."
        }
       }
      }
     },
     "source_document": {
      "type": "object",
      "description": "The Annual Report this school's measures were read from. `url` is the PDF, which is what to link a reader to; `parsed_url` is the .docx the figures were actually read from, and `sha256` and `bytes` describe that file.",
      "properties": {
       "url": {
        "type": "string",
        "format": "uri"
       },
       "format": {
        "type": "string"
       },
       "parsed_format": {
        "type": "string"
       },
       "parsed_url": {
        "type": "string",
        "format": "uri"
       },
       "file": {
        "type": "string"
       },
       "sha256": {
        "type": "string"
       },
       "bytes": {
        "type": "integer"
       },
       "fetched_at": {
        "type": "string",
        "format": "date-time"
       }
      }
     },
     "enrolment_history": {
      "type": "object",
      "description": "Total enrolments at each February census, from the Department of Education's All Schools FTE Enrolments files on DataVic, with the change over 5 and 10 years.",
      "properties": {
       "latest_year": {
        "type": "integer"
       },
       "enrolments": {
        "type": [
         "number",
         "null"
        ]
       },
       "change_5y": {
        "type": [
         "number",
         "null"
        ]
       },
       "change_5y_percent": {
        "type": [
         "number",
         "null"
        ]
       },
       "change_10y": {
        "type": [
         "number",
         "null"
        ]
       },
       "change_10y_percent": {
        "type": [
         "number",
         "null"
        ]
       },
       "year_7_change_5y_percent": {
        "type": [
         "number",
         "null"
        ],
        "description": "Change in the Year 7 intake over five years: the clearest sign of whether families are choosing the school."
       },
       "series": {
        "type": "array",
        "description": "One entry per census year.",
        "items": {
         "type": "object",
         "properties": {
          "year": {
           "type": "integer"
          },
          "enrolments": {
           "type": "number"
          },
          "primary": {
           "type": "number"
          },
          "secondary": {
           "type": "number"
          },
          "year_7": {
           "type": "number"
          },
          "year_12": {
           "type": "number"
          }
         }
        }
       }
      }
     },
     "senior_secondary": {
      "type": "object",
      "description": "VCAA's Senior Secondary Completion and Achievement Information for this school, one entry per year under `years`, with the newest repeated under `latest`. SSCAI names no school number, so each year is linked through VCAA's VCE provider list (which shares its suburbs with SSCAI and publishes a phone number the school register also carries), then checked against the school's own Annual Report.",
      "properties": {
       "latest_year": {
        "type": "integer"
       },
       "latest": {
        "$ref": "#/components/schemas/VicSchoolSeniorSecondary"
       },
       "years": {
        "type": "object",
        "additionalProperties": {
         "$ref": "#/components/schemas/VicSchoolSeniorSecondary"
        }
       }
      }
     },
     "focus": {
      "type": [
       "string",
       "null"
      ],
      "description": "A sentence or two from the school's own Annual Report naming what is particular about it -- a bilingual stream, a selective programme, a deaf facility. Null for most schools, which describe nothing that sets them apart from other government schools."
     },
     "designated_bilingual": {
      "type": [
       "string",
       "null"
      ],
      "description": "The language this school teaches under the Department's Designated Bilingual Program, which funds 30-50% of the week in the target language. Null for every school outside the program, including schools running a bilingual program of their own. Source: https://www.bilingualschools.vic.edu.au/"
     },
     "designated_purpose": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "The Department's designated purpose categories for this school, which cut across the register's school types: autism, deaf, intellectual_mild, intellectual_mild_profound, intellectual_moderate_profound, physical, high_ability, community, vocational, english_language, virtual. Source: https://www2.education.vic.gov.au/pal/designated-purpose-settings/guidance/designated-purpose-schools"
     },
     "focus_tags": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "bilingual, selective, ib, pedagogy, inclusion, unique or academy from the school's own wording; girls_school or boys_school from its enrolment profile; specialist_school or english_language_school from the register's school type."
     },
     "page": {
      "type": "string",
      "format": "uri"
     },
     "json": {
      "type": "string",
      "format": "uri"
     }
    },
    "required": [
     "school_no",
     "school_name"
    ]
   },
   "VicSchoolFile": {
    "type": "object",
    "description": "One file under schools/: the dataset's provenance and the one school it covers. It carries no timestamp -- index.json holds the generation and fetch times for the dataset, so this file changes only when the school's own data does.",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "school": {
      "$ref": "#/components/schemas/VicSchool"
     }
    },
    "required": [
     "school"
    ]
   },
   "VicSchools": {
    "type": "object",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "school_count": {
      "type": "integer"
     },
     "schools": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/VicSchool"
      }
     }
    }
   },
   "VicSchoolRanking": {
    "type": "object",
    "properties": {
     "title": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "measure": {
      "type": "string"
     },
     "basis": {
      "type": "string"
     },
     "unit": {
      "type": "string"
     },
     "higher_is_better": {
      "type": "boolean"
     },
     "requires": {
      "type": [
       "string",
       "null"
      ],
      "description": "A measure a school must have published before it appears in this ranking."
     },
     "school_count": {
      "type": "integer"
     },
     "entries": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "rank": {
         "type": "integer",
         "description": "Shared by schools with equal values."
        },
        "school_no": {
         "type": "string"
        },
        "school_name": {
         "type": "string"
        },
        "slug": {
         "type": "string"
        },
        "suburb": {
         "type": "string"
        },
        "lga": {
         "type": "string"
        },
        "metro": {
         "type": "boolean"
        },
        "school_type": {
         "type": "string"
        },
        "sfoe_band": {
         "type": [
          "string",
          "null"
         ]
        },
        "enrolments": {
         "type": [
          "integer",
          "null"
         ]
        },
        "value": {
         "type": "number"
        },
        "similar_schools_advantage": {
         "type": [
          "number",
          "null"
         ]
        },
        "similar_schools_index": {
         "type": [
          "number",
          "null"
         ]
        },
        "similar_schools_adjusted": {
         "type": [
          "number",
          "null"
         ]
        },
        "similar_schools_reliability": {
         "type": [
          "number",
          "null"
         ]
        },
        "page": {
         "type": "string",
         "format": "uri"
        }
       }
      }
     }
    }
   },
   "VicSchoolRankings": {
    "type": "object",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "table_notes": {
      "type": "object",
      "description": "One entry per table: `default_ranking` and `summary` (what the default measures, in the words the table page uses), the schools with no default rank, and `raw_results`, each raw-results ranking with its page view (`?rank=`) and its place in this file.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": true
      }
     },
     "tables": {
      "type": "object",
      "description": "One entry per level: `secondary`, `primary` and `specialist`. A combined (P-12) school is ranked in both of the first two, on the measures that level reports.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": {
        "$ref": "#/components/schemas/VicSchoolRanking"
       }
      }
     },
     "table_levels": {
      "type": "object",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   },
   "VicSchoolQuestions": {
    "type": "object",
    "description": "The question guide. Every count in it is computed from the build it ships with.",
    "properties": {
     "note": {
      "type": "string"
     },
     "questions": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "question": {
         "type": "string"
        },
        "also_asked_as": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "has_no_single_answer": {
         "type": "boolean",
         "description": "True when the inputs below change the answer."
        },
        "ask_the_reader_first": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "input": {
            "type": "string"
           },
           "values": {
            "type": "array"
           },
           "why": {
            "type": "string"
           },
           "how_much_it_moves_the_answer": {
            "type": "string"
           }
          }
         }
        },
        "then_read": {
         "type": "object",
         "additionalProperties": true,
         "description": "The file and field that answer the question."
        },
        "say_as_well": {
         "type": "string"
        }
       },
       "required": [
        "question",
        "then_read"
       ]
      }
     },
     "commentary": {
      "type": "array",
      "description": "Figures a client will otherwise misread.",
      "items": {
       "type": "object",
       "properties": {
        "topic": {
         "type": "string"
        },
        "what_you_will_see": {
         "type": "string"
        },
        "why_it_is_correct": {
         "type": "string"
        },
        "what_it_actually_means": {
         "type": "string"
        },
        "say_this_as_well": {
         "type": "string"
        },
        "do_not": {
         "type": "string"
        },
        "check_it_yourself": {
         "type": "string"
        }
       }
      }
     },
     "commentary_note": {
      "type": "string"
     },
     "what_it_cannot_answer_yet": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "question": {
         "type": "string"
        },
        "why": {
         "type": "string"
        },
        "where_to_send_the_reader": {
         "type": "string"
        }
       }
      }
     },
     "context_this_dataset_does_not_hold": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "not_advice": {
      "type": "string"
     }
    },
    "required": [
     "questions"
    ]
   },
   "VicSchoolArea": {
    "type": "object",
    "description": "Every government school in one council or suburb, a school per line.",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "area": {
      "type": "object",
      "description": "type (lga or suburb), slug, name; for a council also raw_name (the register's spelling), council_type and suburbs; for a suburb postcodes and lgas."
     },
     "school_count": {
      "type": "integer"
     },
     "school_count_by_level": {
      "type": "object",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "note": {
      "type": "string",
      "description": "How to read ranks."
     },
     "default_ranking": {
      "type": "string"
     },
     "raw_results": {
      "type": "object",
      "description": "Per table, the rankings that are raw results.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     },
     "rankings": {
      "type": "object",
      "description": "Per table and ranking: title, ranked_out_of (the statewide count), unit, higher_is_better."
     },
     "questions": {
      "type": "string",
      "format": "uri"
     },
     "schools": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "school_no": {
         "type": "string"
        },
        "school_name": {
         "type": "string"
        },
        "level": {
         "type": "string",
         "enum": [
          "primary",
          "secondary",
          "combined",
          "special",
          "language"
         ]
        },
        "school_type": {
         "type": "string"
        },
        "suburb": {
         "type": "string"
        },
        "postcode": {
         "type": "string"
        },
        "lga": {
         "type": "string",
         "description": "Readable council name."
        },
        "lga_slug": {
         "type": "string"
        },
        "selective_entry": {
         "type": "boolean",
         "description": "Designated high ability by the Department: entry by exam or audition."
        },
        "focus_tags": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "sfoe_band": {
         "type": [
          "string",
          "null"
         ]
        },
        "enrolments": {
         "type": [
          "integer",
          "null"
         ]
        },
        "report_year": {
         "type": [
          "integer",
          "null"
         ]
        },
        "ranks": {
         "type": "object",
         "description": "ranks[table][ranking] = {rank, value}; rank is statewide on that table. A ranking left out means the school is not ranked on it."
        },
        "page": {
         "type": "string",
         "format": "uri"
        },
        "json": {
         "type": "string",
         "format": "uri"
        }
       }
      }
     }
    }
   },
   "VicSchoolAreaIndex": {
    "type": "object",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "note": {
      "type": "string"
     },
     "count": {
      "type": "integer"
     },
     "url_template": {
      "type": "string"
     },
     "largest_file": {
      "type": "object",
      "description": "slug and bytes of the largest area file."
     },
     "areas": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "slug": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "raw_name": {
         "type": "string",
         "description": "Councils only: the register's spelling, such as Boroondara (C)."
        },
        "lgas": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Suburbs only: the councils its schools sit in."
        },
        "school_count": {
         "type": "integer"
        }
       }
      }
     }
    }
   },
   "VicSchoolNameIndex": {
    "type": "object",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "note": {
      "type": "string"
     },
     "count": {
      "type": "integer",
      "description": "Schools listed."
     },
     "url_template": {
      "type": "string",
      "description": "names/{key}.json; substitute a `key`."
     },
     "school_url_template": {
      "type": "string",
      "description": "schools/{school_no}.json."
     },
     "page_template": {
      "type": "string",
      "description": "A school's page; substitute its `slug`."
     },
     "largest_file": {
      "type": "object",
      "description": "key and bytes of the largest names/ file."
     },
     "keys": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "key": {
         "type": "string"
        },
        "letter": {
         "type": "string"
        },
        "school_count": {
         "type": "integer"
        },
        "first": {
         "type": "string",
         "description": "First school name in the file."
        },
        "last": {
         "type": "string",
         "description": "Last school name in the file."
        }
       }
      }
     }
    }
   },
   "VicSchoolNames": {
    "type": "object",
    "properties": {
     "dataset": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "licence_note": {
      "type": "string"
     },
     "key": {
      "type": "string"
     },
     "note": {
      "type": "string"
     },
     "count": {
      "type": "integer"
     },
     "url_template": {
      "type": "string",
      "description": "schools/{school_no}.json."
     },
     "page_template": {
      "type": "string",
      "description": "A school's page; substitute its `slug`."
     },
     "schools": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "school_no": {
         "type": "string"
        },
        "school_name": {
         "type": "string"
        },
        "slug": {
         "type": "string"
        },
        "suburb": {
         "type": [
          "string",
          "null"
         ]
        },
        "level": {
         "type": [
          "string",
          "null"
         ]
        },
        "school_type": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      }
     }
    }
   },
   "VicSchoolsIndex": {
    "type": "object",
    "description": "The dataset index, and the only published file carrying the generation and fetch times. Every other file changes only when its own data does.",
    "properties": {
     "dataset": {
      "type": "string",
      "description": "Dataset name."
     },
     "page": {
      "type": "string",
      "description": "Human-readable page for the dataset.",
      "format": "uri"
     },
     "start_here": {
      "type": [
       "object",
       "null"
      ],
      "description": "The small file that answers most questions here: answer_file (a URL template), inputs (how to fill it), example (a filled-in URL) and sometimes also (the next file for a common variant).",
      "properties": {
       "answer_file": {
        "type": "string",
        "description": "URL template of the answer file."
       },
       "inputs": {
        "type": "string",
        "description": "What each placeholder takes."
       },
       "example": {
        "type": "string",
        "description": "A filled-in answer file URL.",
        "format": "uri"
       },
       "also": {
        "type": "string",
        "description": "Another file for a common variant of the question."
       },
       "lookup": {
        "type": "string",
        "description": "Where present: a /v1/lookup URL that takes the reader's own numbers, applies the bucket rules and redirects to the answer file.",
        "format": "uri"
       },
       "compare": {
        "type": "string",
        "description": "Where present: a /v1/compare URL that ranks every rate at the reader's exact amount and answers with JSON directly.",
        "format": "uri"
       }
      }
     },
     "generated_at": {
      "type": "string",
      "description": "When this index was written, UTC, YYYY-MM-DDTHH:MM:SSZ.",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "fetched_at": {
      "type": "string",
      "description": "When the source was last fetched, UTC, YYYY-MM-DDTHH:MM:SSZ.",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "data_as_of": {
      "type": "string",
      "description": "How current the data is: a date (YYYY-MM-DD) or a UTC timestamp (YYYY-MM-DDTHH:MM:SSZ); data_as_of_basis says what it means here.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$"
     },
     "data_as_of_basis": {
      "type": "string",
      "description": "One sentence saying what data_as_of means for this dataset."
     },
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "licences": {
      "type": "array",
      "description": "What may be reused and on what terms, layer by layer: each layer's source, the fields it covers, its licence and the attribution it asks for. The last layer is Deep Almanac's own work (CC BY 4.0), covering every field no other layer names. Reusing a field means meeting the terms of the layer that covers it.",
      "items": {
       "type": "object",
       "required": [
        "layer",
        "covers",
        "licence",
        "licence_url",
        "attribution"
       ],
       "properties": {
        "layer": {
         "type": "string",
         "description": "The source."
        },
        "covers": {
         "type": "string",
         "description": "The fields it covers."
        },
        "licence": {
         "type": "string",
         "description": "Its licence, or why there is none."
        },
        "licence_url": {
         "type": [
          "string",
          "null"
         ],
         "format": "uri",
         "description": "The licence's own page, where it has one."
        },
        "attribution": {
         "type": "string",
         "description": "The credit the layer asks for."
        }
       }
      }
     },
     "questions": {
      "type": "string",
      "description": "This dataset's questions.json: what to ask the reader first and which file answers each.",
      "format": "uri"
     },
     "openapi": {
      "type": "string",
      "description": "This dataset's OpenAPI document.",
      "format": "uri"
     },
     "status": {
      "type": "string",
      "description": "https://deepalmanac.com/status.json: when every dataset was last fetched and when it counts as overdue.",
      "format": "uri"
     },
     "llms": {
      "type": "string",
      "description": "https://deepalmanac.com/llms.txt: the site's guide for language models.",
      "format": "uri"
     },
     "files": {
      "type": "array",
      "description": "Every top-level file this dataset publishes, as absolute URLs.",
      "items": {
       "type": "string",
       "format": "uri"
      }
     },
     "file_guide": {
      "type": "array",
      "description": "What each of those files holds, in the same order.",
      "items": {
       "type": "object",
       "properties": {
        "file": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        },
        "description": {
         "type": "string"
        }
       }
      }
     },
     "report_years": {
      "type": "array",
      "items": {
       "type": "integer"
      },
      "description": "The Annual Report years present across the dataset."
     },
     "school_count": {
      "type": "integer",
      "description": "Schools published."
     },
     "measures": {
      "type": "array",
      "items": {
       "type": "object"
      },
      "description": "Every Performance Summary measure published, with its units and which tiers carry it."
     },
     "tables": {
      "type": "object",
      "description": "One entry per level -- `secondary`, `primary` and `specialist` -- each with the levels it draws on, its school count and its rankings.",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "levels": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "school_count": {
         "type": "integer"
        },
        "rankings": {
         "type": "array",
         "items": {
          "type": "object"
         }
        }
       }
      }
     },
     "schools_dir": {
      "type": "object",
      "description": "Where the per-school files live: URL and page templates, the school count, and names_index, where a school's number is looked up by its name."
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        },
        "description": {
         "type": "string"
        }
       }
      },
      "description": "The published sources this dataset is built from."
     },
     "register": {
      "type": "object",
      "description": "The School Locations register file used, with its URL, licence, size and SHA-256."
     },
     "report_url_template": {
      "type": "string",
      "description": "VRQA URL for a school's Annual Report; substitute `{school_no}`."
     },
     "similar_schools_advantage": {
      "type": "object",
      "description": "How the mean gap to a school's Similar Schools group is built: the measures averaged and the minimum number a school needs to be ranked."
     },
     "size_adjustment": {
      "type": "object",
      "description": "The per-table variance fit that shrinks a small school's gap towards zero, and the minimum schools needed to fit it."
     }
    },
    "required": [
     "dataset",
     "page",
     "start_here",
     "generated_at",
     "fetched_at",
     "data_as_of",
     "data_as_of_basis",
     "source",
     "licence_note",
     "licences",
     "questions",
     "openapi",
     "status",
     "llms",
     "files",
     "schools_dir"
    ]
   }
  }
 }
}
