{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-instructors-schema.json",
  "title": "instructors",
  "description": "A collection of records",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-edge-courses-openapi.yml#/components/schemas/instructors",
  "type": "object",
  "properties": {
    "instructors": {
      "description": "List of instructors",
      "id": "instructors",
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/instructor_minimal"
      }
    },
    "totalRecords": {
      "type": "integer"
    }
  },
  "required": [
    "instructors",
    "totalRecords"
  ],
  "$defs": {
    "instructor_minimal": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "object",
      "description": "Describes an instructor for a given section",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "description": "UUID for this instructor",
          "$ref": "#/$defs/uuid"
        },
        "name": {
          "type": "string",
          "description": "The name of this instructor"
        }
      },
      "required": [
        "name"
      ]
    },
    "uuid": {
      "description": "UUID",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    }
  }
}