{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NOVA IMS Digital Credential",
  "description": "Schema defining a verifiable credential issued by NOVA IMS representing a student's course enrolment details.",
  "type": "object",
  "allOf": [
    {
      "$ref": "./node_modules/@cef-ebsi/vcdm1.1-attestation-schema/schema.json"
    },
    {
      "properties": {
        "credentialSubject": {
          "description": "Contains details about the student and their course enrolment at NOVA IMS.",
          "type": "object",
          "properties": {
            "firstName": {
              "type": "string",
              "description": "The given name(s) of the student."
            },
            "familyName": {
              "type": "string",
              "description": "The family name(s) of the student."
            },
            "courseName": {
              "type": "string",
              "description": "The official name of the course of study at NOVA IMS."
            },
            "specialization": {
              "type": "string",
              "description": "The specialisation within the course, if applicable."
            },
            "startDate": {
              "type": "string",
              "format": "date",
              "description": "The official start date of the student's enrolment in the course (YYYY-MM-DD)."
            },
            "endDate": {
              "type": "string",
              "format": "date",
              "description": "The official or expected end date of the student's enrolment (YYYY-MM-DD)."
            }
          },
          "required": [
            "firstName",
            "familyName",
            "courseName",
            "startDate",
            "endDate"
          ]
        }
      }
    }
  ],
  "$defs": {}
}
