-
Notifications
You must be signed in to change notification settings - Fork 35
/
album-product.json
35 lines (35 loc) · 1.13 KB
/
album-product.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title" : "album-product",
"description" : "The JSON schema that matches an album product.",
"id": "https://mastert.github.io/bandcamp-scraper/schemas/album-product.json",
"type": "object",
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"artist": { "type": "string" },
"format": { "type": "string" },
"url": { "type": "string", "format": "uri" },
"imageUrls": {
"type": "array",
"items": { "type": "string", "format": "uri" }
},
"priceInCents": {
"oneOf": [
{ "type": "null" },
{ "type": "integer", "minimum": 0 }
]
},
"description": { "type": "string" },
"soldOut": { "type": "boolean" },
"nameYourPrice": { "type": "boolean" },
"offerMore": { "type": "boolean" },
"currency": {
"oneOf": [
{ "type": "null" },
{ "type": "string", "minLength": 3, "maxLength": 3 }
]
}
},
"required": [ "name", "artist", "format", "url", "imageUrls", "priceInCents", "currency", "description", "soldOut", "nameYourPrice", "offerMore" ]
}