{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:MusicRelease",
  "title": "MusicRelease",
  "description": "A MusicRelease is a specific release of a music album.",
  "type": "object",
  "allOf": [
    {
      "description": "A collection of music tracks in playlist form.",
      "$ref": "schema:MusicPlaylist"
    }
  ],
  "properties": {
    "catalogNumber": {
      "description": "The catalog number for the release.",
      "type": "string"
    },
    "creditedTo": {
      "description": "The group the release is credited to if different than the byArtist. For example, Red and Blue is credited to \"Stefani Germanotta Band\", but by Lady Gaga.",
      "anyOf": [{ "$ref": "schema:Organization" }, { "$ref": "schema:Person" }]
    },
    "duration": {
      "description": "The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).",
      "anyOf": [
        { "type": "string", "$comment": "https://schema.org/Duration" },
        { "$ref": "schema:QuantitativeValue" }
      ]
    },
    "musicReleaseFormat": {
      "description": "Format of this release (the type of recording media used, i.e. compact disc, digital media, LP, etc.).",
      "oneOf": [
        { "$ref": "schema:MusicReleaseFormatType" },
        {
          "type": "array",
          "items": { "$ref": "schema:MusicReleaseFormatType" }
        }
      ]
    },
    "recordLabel": {
      "description": "The label that issued the release.",
      "$ref": "schema:Organization"
    },
    "releaseOf": {
      "description": "The album this is a release of.",
      "$ref": "schema:MusicAlbum"
    }
  }
}
