{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zippedscript/json-schema/zippedscript-paginated-read-institution-serializer-schema.json",
  "title": "PaginatedReadInstitutionSerializer",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zippedscript-direct-api-openapi.yml#/components/schemas/PaginatedReadInstitutionSerializer",
  "required": [
    "count",
    "next",
    "previous",
    "results"
  ],
  "type": "object",
  "properties": {
    "count": {
      "title": "Count",
      "description": "Total number of records able to be retrieved",
      "type": "integer"
    },
    "next": {
      "title": "Next",
      "description": "A link to the next page of records",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "title": "Previous",
      "description": "A link to the previous page of records",
      "type": [
        "string",
        "null"
      ]
    },
    "results": {
      "description": "A list of the returned records",
      "type": "array",
      "items": {
        "$ref": "#/$defs/DegreeDirectInstitution"
      }
    }
  },
  "$defs": {
    "DegreeDirectInstitution": {
      "description": "A list of the returned records",
      "required": [
        "country",
        "name"
      ],
      "type": "object",
      "properties": {
        "id": {
          "title": "Id",
          "type": "integer",
          "readOnly": true
        },
        "year_limits": {
          "title": "Year limits",
          "type": [
            "array",
            "null"
          ],
          "description": "Valid graduation year ranges for this institution. A null start or end leaves that side open.",
          "items": {
            "type": "object",
            "properties": {
              "start": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "end": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        },
        "country": {
          "title": "Country",
          "description": "The country code for the search (e.g., US)",
          "type": "string",
          "maxLength": 32,
          "minLength": 1
        },
        "name": {
          "title": "Name",
          "description": "The name of the institution",
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        "native_name": {
          "title": "Native name",
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "additional_request_details": {
          "title": "Additional request details",
          "type": [
            "object",
            "null"
          ]
        }
      }
    }
  }
}