-
Notifications
You must be signed in to change notification settings - Fork 35
/
album-info.json
49 lines (49 loc) · 1.23 KB
/
album-info.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"track": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"url": { "type": "string", "format": "uri" },
"duration": { "type": "string" }
},
"required": [ "name" ]
},
"tag": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": { "type": "string" }
},
"required": [ "name" ]
}
},
"title" : "album-info",
"description" : "The JSON schema that matches album info.",
"id": "https://mastert.github.io/bandcamp-scraper/schemas/album-info.json",
"type": "object",
"additionalProperties": false,
"properties": {
"artist":{ "type": "string" },
"title":{ "type": "string" },
"url":{ "type": "string", "format": "uri" },
"imageUrl":{
"type": "string",
"format": "uri"
},
"tracks": {
"type": "array",
"items": { "$ref": "#/definitions/track" }
},
"tags": {
"type": "array",
"items": { "$ref": "#/definitions/tag" }
},
"raw": {
"type": "object"
}
},
"required": [ "artist", "title", "url", "tracks", "raw" ]
}