{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schoolchoicecompass-com/json-schema/schoolchoicecompass-com-jurisdiction-list-schema.json",
  "title": "JurisdictionList",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schoolchoicecompass-com-openapi.yml#/components/schemas/JurisdictionList",
  "type": "object",
  "required": [
    "about",
    "jurisdictions"
  ],
  "properties": {
    "about": {
      "$ref": "#/$defs/About"
    },
    "kinds": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "jurisdictions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code",
          "name",
          "file",
          "counts"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "page": {
            "type": "string",
            "format": "uri"
          },
          "page_indexed": {
            "type": "boolean"
          },
          "file": {
            "type": "string",
            "format": "uri"
          },
          "schools_file": {
            "oneOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "kinds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "federal_credit_participant": {
            "type": "boolean"
          },
          "counts": {
            "$ref": "#/$defs/Counts"
          }
        }
      }
    }
  },
  "$defs": {
    "About": {
      "type": "object",
      "required": [
        "dataset",
        "format_version",
        "file",
        "updated",
        "use"
      ],
      "properties": {
        "dataset": {
          "type": "string"
        },
        "format_version": {
          "type": "string"
        },
        "file": {
          "type": "string",
          "format": "uri"
        },
        "html": {
          "type": "string",
          "format": "uri"
        },
        "updated": {
          "type": "string",
          "format": "date"
        },
        "documentation": {
          "type": "string",
          "format": "uri"
        },
        "use": {
          "type": "object",
          "required": [
            "attribution",
            "licence"
          ],
          "properties": {
            "attribution": {
              "type": "string"
            },
            "licence": {
              "type": "object",
              "properties": {
                "compilation": {
                  "type": "string"
                },
                "compilation_url": {
                  "type": "string",
                  "format": "uri"
                },
                "facts": {
                  "type": "string"
                }
              }
            },
            "terms": {
              "type": "string",
              "format": "uri"
            },
            "sources": {
              "type": "string",
              "format": "uri"
            },
            "not_advice": {
              "type": "string"
            }
          }
        }
      }
    },
    "Counts": {
      "type": "object",
      "required": [
        "programs",
        "programs_with_page",
        "school_profiles_indexed"
      ],
      "properties": {
        "programs": {
          "type": "integer",
          "minimum": 0
        },
        "programs_with_page": {
          "type": "integer",
          "minimum": 0
        },
        "schools_on_list": {
          "oneOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "school_profiles_indexed": {
          "type": "integer",
          "minimum": 0
        },
        "scholarship_organizations": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  }
}