-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersonalLicence.jschema
46 lines (46 loc) · 1.52 KB
/
personalLicence.jschema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"id": "personalLicence",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Personal Licences",
"description": "JSON Schema for user defined metadata of student's personal ID (personal licence, passport or driving licence) in the scope of Student Records. The property names follow the vocabulary of schema.org.",
"type": "object",
"required": [
"about",
"@type",
"additionalType",
"identifier",
"dateCreated"
],
"properties": {
"about": {
"allOf": [
{"$ref": "https://raw.githubusercontent.com/SanjaSaric/playground/main/basic.jschema#/definitions/about"}
]
},
"comment": {"$ref": "https://raw.githubusercontent.com/SanjaSaric/playground/main/basic.jschema#/definitions/comment"},
"@type": {
"description": "Type of this entity",
"type": "string",
"enum": ["Certification"]
},
"additionalType": {
"description": "Subtype of this entity",
"type": "string",
"enum": [
"Personal ID",
"Passport",
"Driver's licence"
]
},
"identifier": {
"description": "ID number",
"type": "string"
},
"dateCreated": {
"description": "Date of issue of the ID",
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
}
},
"additionalProperties": false
}