-
Notifications
You must be signed in to change notification settings - Fork 2
/
commons-api.projects.schema.json
34 lines (34 loc) · 1.17 KB
/
commons-api.projects.schema.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
{
"$schema": "http://json-schema.org/schema#",
"$id": "https://github.com/wielebenwir/commons-api/blob/master/commons-api.projects.schema.json",
"title": "Commons Api Projects Schema",
"description": "A schema for projects of the Commons API",
"definitions": {
"project": {
"type": "object",
"description": "The project that organizes the lending of the items",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"url": {
"type": "string",
"format": "uri"
},
"description": { "type": "string" },
"image": { "type": "string", "format": "uri" },
"language": { "type": "string" }
},
"required": ["id", "name", "url"]
}
},
"type": "object",
"properties": {
"projects": {
"type": "array",
"descriptions": "An array with the item projects as values.",
"items": { "$ref": "#/definitions/project" },
"uniqueItems": true
}
},
"required": ["projects"]
}