{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:MusicRecording",
  "title": "MusicRecording",
  "description": "A music recording (track), usually a single song.",
  "type": "object",
  "allOf": [
    {
      "description": "The most generic kind of creative work, including books, movies, photographs, software programs, etc.",
      "$ref": "schema:CreativeWork"
    }
  ],
  "properties": {
    "byArtist": {
      "description": "The artist that performed this album or recording.",
      "anyOf": [{ "$ref": "schema:MusicGroup" }, { "$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" }
      ]
    },
    "inAlbum": {
      "description": "The album to which this recording belongs.",
      "$ref": "schema:MusicAlbum"
    },
    "inPlaylist": {
      "description": "The playlist to which this recording belongs.",
      "$ref": "schema:MusicPlaylist"
    },
    "isrcCode": {
      "description": "The International Standard Recording Code for the recording.",
      "type": "string"
    },
    "recordingOf": {
      "description": "The composition this track is a recording of.",
      "$ref": "schema:MusicComposition"
    }
  }
}
