-
Notifications
You must be signed in to change notification settings - Fork 0
/
title.json
71 lines (71 loc) · 1.56 KB
/
title.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
61
62
63
64
65
66
67
68
69
70
71
{
"type": "object",
"title":"title",
"description":"A book title resource",
"properties": {
"id" : {
"type": "integer",
"format": "int64",
"description": "Id for the title"
},
"isbn": {
"type": "string",
"description": "ISBN for the title"
},
"title": {
"type": "string",
"description": "Title for title."
},
"review": {
"type": "string",
"description": "Review for the title."
},
"authors": {
"type": "array",
"description": "List of authors for this title",
"items": {
"type": "string"
}
},
"reservation" : {
"$ref": "./reservation.json"
},
"currency" : {
"$ref": "../common/currency_code.json"
},
"copies": {
"type": "array",
"description": "List of copies for this title",
"items": {
"$ref": "../title/copy.json"
}
},
"media_types": {
"description": "different media types",
"type": "array",
"items" : {
"type" : "string",
"enum" : [ "application/pdf", "application/json" ]
}
},
"reservations": {
"type": "array",
"description": "List of copies for this title",
"minItems": 1,
"maxItems": 10,
"items": {
"$ref": "../title/reservation.json"
}
},
"datatypes": {
"type": "array",
"description": "List of copies for this title",
"minItems": 1,
"maxItems": 10,
"items": {
"$ref": "../title/datatypes.json"
}
}
},
"required" : [ "id" ]
}