-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmappings-schema.json
More file actions
40 lines (40 loc) · 1 KB
/
mappings-schema.json
File metadata and controls
40 lines (40 loc) · 1 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
{
"$defs": {
"url": {
"type": "string",
"format": "uri",
"pattern": "^https?://"
},
"mappings": {
"type": "object",
"properties": {
"access": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": { "$ref": "#/$defs/url" },
"download": { "$ref": "#/$defs/url" },
"format": { "$ref": "#/$defs/url" }
}
}
},
"partOf": {
"type": "array",
"items": { "$ref": "#/$defs/url" },
"minItems": 1,
"maxItems": 1
},
"name": { "type": "string", "minLength": 1 },
"description": { "type": "string" },
"url": { "$ref": "#/$defs/url" },
"uri": { "$ref": "#/$defs/url" },
"id": { "type": "string", "pattern": "^[1-9][0-9]*$" }
}
}
},
"oneOf": [
{ "$ref": "#/$defs/mappings" },
{ "type": "array", "items": { "$ref": "#/$defs/mappings" } }
]
}