{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://w3id.org/moochub/4.0.0/schemas/courseInstance.json",
  "title": "Course instance",
  "description": "An offering of a course at a particular time, location, or mode of study.",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/id.json"
    },
    "type": {
      "const": "CourseInstance"
    },
    "name": {
      "$ref": "https://w3id.org/kim/amb/20231019/schemas/localizedString.json",
      "description": "An optional label for this offering, such as Summer semester 2026."
    },
    "courseMode": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/courseMode.json"
    },
    "maximumAttendeeCapacity": {
      "type": "integer",
      "minimum": 0,
      "description": "The maximum number of attendees who can participate in this offering."
    },
    "subEvent": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/subEvent.json"
    },
    "courseSchedule": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "https://w3id.org/moochub/4.0.0/schemas/schedule.json"
      }
    },
    "startDate": {
      "type": "string",
      "format": "date-time",
      "description": "The RFC 3339 date-time at which the course offering starts."
    },
    "endDate": {
      "type": "string",
      "format": "date-time",
      "description": "The RFC 3339 date-time at which the course offering ends."
    },
    "duration": {
      "type": "string",
      "format": "duration",
      "description": "The ISO 8601 duration of the course offering, for example P3M."
    },
    "applicationStartDate": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/applicationStartDate.json"
    },
    "applicationDeadline": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/applicationDeadline.json"
    },
    "location": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/courseLocation.json"
    },
    "instructor": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/instructor.json"
    },
    "offers": {
      "$ref": "https://w3id.org/moochub/4.0.0/schemas/offers.json"
    }
  },
  "required": ["id", "type"]
}
