forked from DaylightAcademy/DLA-LightEx-MD-Schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
person.json
60 lines (60 loc) · 1.4 KB
/
person.json
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/cdsig/CDSIG-Schema/blob/main/person.json",
"title": "Base schema for contributors",
"description": "Role and contact information about a person.",
"required": ["name", "role", "institution"],
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"role": {
"title": "Roles",
"description": "Role ID(s) according to the Contributor Role Ontology (https://www.ebi.ac.uk/ols/ontologies/cro)",
"type": "array",
"items": {
"title": "Role ID",
"description": "Role ID",
"type": "string",
"pattern": "^((CRO_[0-9]{7})|(CREDIT_[0-9]{8}))$"
},
"minItems": 1
},
"email": {
"title": "Email",
"type": "string",
"format": "idn-email"
},
"orcid": {
"title": "ORCID identifier",
"description": "ORCID identifier",
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9|X]$"
},
"institution": {
"title": "Institution",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"street_address": {
"title": "Street address",
"type": "string"
},
"city": {
"title": "City",
"type": "string"
},
"country": {
"title": "Country",
"type": "string"
}
},
"required": ["name", "country"]
}
}
}