/
profile.schema.json
54 lines (54 loc) · 1.36 KB
/
profile.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://drafts.opds.io/schema/profile.schema.json",
"title": "OPDS Profile Document",
"type": "object",
"properties": {
"name": {
"description": "Given name for the user",
"type": "string"
},
"email": {
"description": "Email address associated to the user",
"type": "string",
"format": "email"
},
"links": {
"type": "array",
"items": {
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json"
},
"uniqueItems": true
},
"loans": {
"type": "object",
"properties": {
"total": {
"description": "Number of loans allowed at any time for the users",
"type": "integer",
"minimum": 0
},
"available": {
"description": "Number of loans currently available to the user",
"type": "integer",
"minimum": 0
}
}
},
"holds": {
"type": "object",
"properties": {
"total": {
"description": "Number of holds allowed at any time for the users",
"type": "integer",
"minimum": 0
},
"available": {
"description": "Number of holds currently available to the user",
"type": "integer",
"minimum": 0
}
}
}
}
}