{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bugbug-io/json-schema/bugbug-io-test-import-conflict-schema.json",
  "title": "TestImportConflict",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bugbug-io-import-export-api-openapi.yml#/components/schemas/TestImportConflict",
  "type": "object",
  "properties": {
    "status": {
      "enum": [
        "conflict"
      ],
      "type": "string",
      "description": "* `conflict` - conflict",
      "x-spec-enum-id": "eb69ffa1458a6044"
    },
    "entityIds": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "conflicts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TestImportConflictItem"
      }
    }
  },
  "required": [
    "conflicts",
    "entityIds",
    "status"
  ],
  "$defs": {
    "TestImportConflictItem": {
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "existingId": {
          "type": "string",
          "format": "uuid"
        },
        "yamlDiff": {
          "oneOf": [
            {
              "$ref": "#/$defs/TestImportYamlDiff"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "entityType",
        "existingId",
        "name",
        "slug",
        "yamlDiff"
      ]
    },
    "TestImportYamlDiff": {
      "type": "object",
      "properties": {
        "currentYaml": {
          "type": "string"
        },
        "incomingYaml": {
          "type": "string"
        }
      },
      "required": [
        "currentYaml",
        "incomingYaml"
      ]
    }
  }
}