/ch.indiemusi.alpha.release

Lexicon Definitions

{
  "lexicon": 1,
  "id": "ch.indiemusi.alpha.release",
  "defs": {
    "main": {
      "type": "record",
      "key": "tid",
      "description": "A release (album, EP, single) containing recordings of songs or musical works",
      "record": {
        "type": "object",
        "required": [
          "title",
          "artists",
          "recordings"
        ],
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "artists": {
            "type": "array",
            "minLength": 1,
            "items": {
              "type": "object",
              "required": [
                "name"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 255
                },
                "did": {
                  "type": "string",
                  "format": "did"
                },
                "artist": {
                  "type": "ref",
                  "ref": "ch.indiemusi.alpha.actor.artist"
                }
              }
            }
          },
          "gtin": {
            "type": "string",
            "description": "GTIN (Global Trade Item Number) with which the release is registered, e.g. EAN or UPC",
            "maxLength": 14
          },
          "releaseDate": {
            "type": "string",
            "format": "datetime"
          },
          "artworkImage": {
            "type": "blob"
          },
          "recordings": {
            "type": "array",
            "description": "List of recordings (ch.indiemusi.alpha.recording) included in this release",
            "minLength": 1,
            "items": {
              "type": "ref",
              "ref": "ch.indiemusi.alpha.recording"
            }
          }
        }
      }
    }
  }
}