{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/track/json-schema/track-sound-recording-schema.json",
  "title": "SoundRecording",
  "description": "Adds deletion-related read-only flags to SoundRecording serializers.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/track-catalogue-api-openapi.yml#/components/schemas/SoundRecording",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "label_id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string",
      "maxLength": 255
    },
    "mix_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255
    },
    "isrc": {
      "type": [
        "string",
        "null"
      ],
      "description": "International Standard Recording Code",
      "maxLength": 15
    },
    "can_delete": {
      "type": "boolean",
      "readOnly": true
    },
    "has_multiple_releases": {
      "type": "string",
      "readOnly": true
    },
    "can_unlink_from_release": {
      "type": "string",
      "readOnly": true
    },
    "releases": {
      "type": "string",
      "readOnly": true
    },
    "contributors": {
      "type": "string"
    },
    "contract_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "sound_recording_id": {
      "type": "string",
      "format": "uuid",
      "writeOnly": true
    },
    "release": {
      "type": "string",
      "format": "uuid",
      "writeOnly": true
    },
    "track_number": {
      "type": [
        "string",
        "null"
      ],
      "writeOnly": true
    },
    "replace_existing": {
      "type": "boolean",
      "writeOnly": true,
      "default": false
    },
    "import_aliases": {
      "readOnly": true,
      "description": "Normalized aliases for import matching: {'field_name': ['alias1', 'alias2']}"
    }
  },
  "required": [
    "can_delete",
    "can_unlink_from_release",
    "has_multiple_releases",
    "id",
    "import_aliases",
    "label_id",
    "releases",
    "title"
  ]
}