IdHub/schemas/course-credential.json

146 lines
6.2 KiB
JSON
Raw Normal View History

2024-01-21 20:08:43 +00:00
{
2024-02-27 09:28:14 +00:00
"$id": "https://idhub.pangea.org/vc_schemas/course-credential",
2024-01-21 20:08:43 +00:00
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "NGO Course Credential Schema",
"description": "A NGO Course Credential Schema awarded by a NGO federation and their NGO members, as proposed by Lafede.cat",
"name": [
{
"value": "NGO Course Credential for participants",
"lang": "en"
},
{
"value": "Credencial per participants d'un curs impartit per una ONG",
"lang": "ca_ES"
},
{
"value": "Credencial para participantes de un curso impartido por una ONG",
"lang": "es"
}
],
"type": "object",
"allOf": [
{
"$ref": "https://idhub.pangea.org/vc_schemas/ebsi/attestation.json"
},
{
"properties": {
"credentialSubject": {
"description": "Defines additional properties on credentialSubject: the given course followed by a student",
"type": "object",
"properties": {
"id": {
"description": "Defines a unique identifier (DID) of the credential subject: the credential of a completed course by a student",
2024-02-27 09:28:14 +00:00
"type": "string",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"firstName": {
"type": "string",
2024-02-27 09:28:14 +00:00
"description": "The first name of the student",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"lastName": {
"type": "string",
2024-02-27 09:28:14 +00:00
"description": "The family name of the student",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
2024-02-07 09:32:28 +00:00
"email": {
"type": "string",
2024-02-27 09:28:14 +00:00
"format": "email",
"pattern": "^\\S+@\\S+\\.\\S+$"
2024-02-07 09:32:28 +00:00
},
2024-01-21 20:08:43 +00:00
"personalIdentifier": {
"type": "string",
2024-02-27 09:28:14 +00:00
"description": "The personal identifier of the student, such as ID number",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"issuedDate": {
"type": "string",
"description": "The date the credential was issued",
2024-02-27 09:28:14 +00:00
"format": "date",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"modeOfInstruction": {
"type": "string",
2024-02-27 09:28:14 +00:00
"description": "The mode of instruction: online, in-person, etc.",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"courseDuration": {
"type": "integer",
2024-02-27 09:28:14 +00:00
"description": "The duration of the course in hours",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"courseDays": {
"type": "integer",
2024-02-27 09:28:14 +00:00
"description": "The number of days the course lasts",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"courseName": {
"type": "string",
2024-02-27 09:28:14 +00:00
"description": "The name of the course",
"minLength": 1
2024-01-21 20:08:43 +00:00
},
"courseDescription": {
"type": "string",
"description": "The description of the course"
},
"gradingScheme": {
"type": "string",
"description": "The grading scheme used for the course"
},
"scoreAwarded": {
"type": "integer",
"description": "The score awarded to the student",
"minimum": 0,
"maximum": 10
},
"qualificationAwarded": {
"type": "string",
"description": "The qualification awarded to the student",
"enum": [
"A+",
"A",
"B",
"C",
"D"
]
},
"courseLevel": {
"type": "string",
"description": "The level of the course"
},
"courseFramework": {
"type": "string",
"description": "The framework in which the course belongs to"
},
"courseCredits": {
2024-02-27 09:28:14 +00:00
"type": "integer",
2024-01-21 20:08:43 +00:00
"description": "The number of (ECTS) credits awarded for the course"
},
"dateOfAssessment": {
"type": ["string", "null"],
2024-01-21 20:08:43 +00:00
"description": "The date of assessment",
"format": "date"
},
"evidenceAssessment": {
"type": "string",
"description": "The evidence of the assessment: final exam, presence, participation"
}
},
"required": [
"id",
"firstName",
"lastName",
2024-02-07 09:32:28 +00:00
"email",
2024-01-21 20:08:43 +00:00
"personalIdentifier",
"issuedDate",
"modeOfInstruction",
"courseDuration",
"courseDays",
"courseName"
]
}
}
}
]
}