{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Enrollment",
  "required": [
    "enrollmentId",
    "courseId",
    "learnerId",
    "accessDate",
    "shouldLockAfterDueDate",
    "enrollmentTypeGroup"
  ],
  "properties": {
    "enrollmentId": {
      "type": "string",
      "format": "uuid"
    },
    "courseId": {
      "type": "string",
      "format": "uuid"
    },
    "learnerId": {
      "type": "string",
      "format": "uuid"
    },
    "accessDate": {
      "type": "string",
      "format": "date"
    },
    "dueDate": {
      "type": "string",
      "format": "date"
    },
    "expirationDate": {
      "type": "string",
      "format": "date"
    },
    "shouldLockAfterDueDate": {
      "type": "boolean"
    },
    "certificate": {
      "$ref": "#/components/schemas/IssuedCertificateInformation"
    },
    "enrollmentTypeGroup": {
      "$ref": "#/components/schemas/EnrollmentTypeGroup"
    }
  },
  "type": "object",
  "xml": {
    "name": "enrollment"
  }
}