-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathschemaKeys.json
More file actions
47 lines (47 loc) · 1.89 KB
/
schemaKeys.json
File metadata and controls
47 lines (47 loc) · 1.89 KB
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
{
"id": "https://www.elixir-europe.org/excelerate/WP2/json-schemas/0.3/SchemaKeys",
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
"title": "Relational information not included in standard Json Schema",
"type": "object",
"properties": {
"_id": {
"title": "Data Type id. It should correspond to a valid schema in the repository",
"type": "string",
"minLength": 1
},
"_schema": {
"title": "The JSON schema absolute URI. It must match the value of 'id' in the JSON schema",
"type": "string",
"format": "uri",
"enum": [ "https://www.elixir-europe.org/excelerate/WP2/json-schemas/0.3/SchemaKeys" ]
},
"primary_key" : {
"type": "string",
"title": "property used as primary key, defaults to _id in MongoDB implementation",
"default": "_id"
},
"foreign_keys" : {
"title": "Properties used as pseudo relational type FKs",
"type": "array",
"items" : {
"type": "object",
"properties": {
"collection" : {
"title": "Collection where FK is referred. It should correspond to a valid schema in the repository",
"type": "string"
},
"fields" : {
"title": "fields used as keys, usually _id",
"type": "array",
"minItems":1,
"items" : {
"type": "string"
}
}
}
}
}
},
"additionalProperties": false,
"required": ["_id","_schema"]
}