{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/track/json-schema/track-patched-import-item-resolution-update-schema.json",
  "title": "PatchedImportItemResolutionUpdate",
  "description": "Serializer for updating resolution-related fields on an ImportItem.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/track-imports-api-openapi.yml#/components/schemas/PatchedImportItemResolutionUpdate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "release": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "sound_recording": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "release_match_status": {
      "oneOf": [
        {
          "$ref": "#/$defs/ReleaseMatchStatusEnum"
        },
        {
          "$ref": "#/$defs/BlankEnum"
        },
        {
          "$ref": "#/$defs/NullEnum"
        }
      ]
    },
    "recording_match_status": {
      "oneOf": [
        {
          "$ref": "#/$defs/RecordingMatchStatusEnum"
        },
        {
          "$ref": "#/$defs/BlankEnum"
        },
        {
          "$ref": "#/$defs/NullEnum"
        }
      ]
    },
    "recording_resolution": {
      "description": "How to resolve recording conflicts: keep catalog version or use import version\n\n* `keep_catalog` - Keep Catalog Version\n* `use_import` - Use Import Version",
      "oneOf": [
        {
          "$ref": "#/$defs/RecordingResolutionEnum"
        },
        {
          "$ref": "#/$defs/BlankEnum"
        },
        {
          "$ref": "#/$defs/NullEnum"
        }
      ]
    },
    "release_resolution": {
      "description": "How to resolve release conflicts: keep catalog version or use import version\n\n* `keep_catalog` - Keep Catalog Version\n* `use_import` - Use Import Version",
      "oneOf": [
        {
          "$ref": "#/$defs/ReleaseResolutionEnum"
        },
        {
          "$ref": "#/$defs/BlankEnum"
        },
        {
          "$ref": "#/$defs/NullEnum"
        }
      ]
    }
  },
  "$defs": {
    "BlankEnum": {
      "enum": [
        ""
      ]
    },
    "NullEnum": {
      "enum": [
        null
      ]
    },
    "RecordingMatchStatusEnum": {
      "enum": [
        "exact",
        "likely",
        "update",
        "new",
        "conflict",
        "error",
        "duplicate"
      ],
      "type": "string",
      "description": "* `exact` - Exact\n* `likely` - Likely\n* `update` - Update\n* `new` - New\n* `conflict` - Conflict\n* `error` - Error\n* `duplicate` - Duplicate"
    },
    "RecordingResolutionEnum": {
      "enum": [
        "keep_catalog",
        "use_import"
      ],
      "type": "string",
      "description": "* `keep_catalog` - Keep Catalog Version\n* `use_import` - Use Import Version"
    },
    "ReleaseMatchStatusEnum": {
      "enum": [
        "exact",
        "likely",
        "update",
        "new",
        "conflict",
        "error",
        "duplicate"
      ],
      "type": "string",
      "description": "* `exact` - Exact\n* `likely` - Likely\n* `update` - Update\n* `new` - New\n* `conflict` - Conflict\n* `error` - Error\n* `duplicate` - Duplicate"
    },
    "ReleaseResolutionEnum": {
      "enum": [
        "keep_catalog",
        "use_import"
      ],
      "type": "string",
      "description": "* `keep_catalog` - Keep Catalog Version\n* `use_import` - Use Import Version"
    }
  }
}