{
  "$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" ]
}
