-
Notifications
You must be signed in to change notification settings - Fork 111
/
playlistSchema.json
56 lines (56 loc) · 1.66 KB
/
playlistSchema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Playlist",
"definitions": {
"Playlist": {
"type": "object",
"additionalProperties": true,
"properties": {
"playlist_id": {
"type": ["integer", "null"],
"default": null
},
"playlist_contents": {
"type": ["array", "null"],
"default": []
},
"playlist_name": {
"type": ["string", "null"],
"default": null
},
"playlist_image_sizes_multihash": {
"type": ["string", "null"],
"default": null,
"$ref": "#/definitions/CID"
},
"description": {
"type": ["string", "null"],
"default": null
},
"is_album": {
"type": "boolean",
"default": null
},
"is_private": {
"type": "boolean",
"default": null
}
},
"required": [
"playlist_name",
"playlist_id",
"description",
"is_album",
"is_private"
],
"title": "Playlist"
},
"CID": {
"type": ["string", "null"],
"minLength": 46,
"maxLength": 46,
"pattern": "^Qm[a-zA-Z0-9]{44}$",
"title": "CID"
}
}
}