{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/university-of-groningen/main/json-schema/university-of-groningen-ocasys-program-schema.json",
  "x-generated": "2026-08-30",
  "x-method": "derived",
  "x-source": "openapi/university-of-groningen-course-catalog-api-openapi.yml, https://ocasys.rug.nl/api/2026-2027/program?searchTerm=biology",
  "x-operator": "institution",
  "title": "Ocasys Degree Programme",
  "description": "A degree programme in the University of Groningen Ocasys catalog, derived from a live unauthenticated response on 2026-08-30.",
  "type": "object",
  "required": ["id", "code", "title"],
  "properties": {
    "id": { "type": "string", "format": "uuid" },
    "code": { "type": "string", "description": "Programme code, e.g. 60609-5508." },
    "title": { "$ref": "#/$defs/LocalizedText" },
    "levels": { "type": "array", "items": { "type": "string", "enum": ["MASTER", "BACHELOR", "EXCHANGE", "PRE_MASTER", "UNIVERSITY_LEVEL_MINOR", "FACULTY_LEVEL_MINOR", "POST_GRADUATE"] } },
    "languages": { "type": "array", "items": { "type": "string" } },
    "credits": { "type": "number", "description": "Total ECTS credits for the programme." },
    "term": { "type": "string", "description": "Term pattern, e.g. WHOLE_YEAR." },
    "duration": { "type": "integer", "description": "Nominal duration in years." },
    "facultyTitle": { "$ref": "#/$defs/LocalizedText" },
    "organizationalUnitTitle": { "$ref": "#/$defs/LocalizedText" },
    "official": { "type": "boolean" },
    "yearVisible": { "type": "boolean" },
    "otherPeriods": { "type": "boolean" },
    "draft": { "type": "boolean" }
  },
  "$defs": {
    "LocalizedText": {
      "type": "object",
      "properties": { "en": { "type": "string" }, "nl": { "type": "string" } }
    }
  }
}
