{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "description": "The JSON schema that matches an album product.",
    "id": "https://mastert.github.io/bandcamp-scraper/schemas/album-product.json",
    "properties": {
        "artist": {
            "type": "string"
        },
        "currency": {
            "oneOf": [
                {
                    "type": "null"
                },
                {
                    "maxLength": 3,
                    "minLength": 3,
                    "type": "string"
                }
            ]
        },
        "description": {
            "type": "string"
        },
        "format": {
            "type": "string"
        },
        "imageUrls": {
            "items": {
                "_format": "uri",
                "type": "string"
            },
            "type": "array"
        },
        "name": {
            "type": "string"
        },
        "nameYourPrice": {
            "type": "boolean"
        },
        "offerMore": {
            "type": "boolean"
        },
        "priceInCents": {
            "oneOf": [
                {
                    "type": "null"
                },
                {
                    "minimum": 0,
                    "type": "integer"
                }
            ]
        },
        "soldOut": {
            "type": "boolean"
        },
        "url": {
            "_format": "uri",
            "type": "string"
        }
    },
    "required": [
        "name",
        "artist",
        "format",
        "url",
        "imageUrls",
        "priceInCents",
        "currency",
        "description",
        "soldOut",
        "nameYourPrice",
        "offerMore"
    ],
    "title": "album-product",
    "type": "object"
}