{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-entity-copy-response-schema.json",
  "title": "EntityCopyResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-entities-api-openapi.yml#/components/schemas/EntityCopyResponse",
  "required": [
    "entitiesCopied",
    "hardConflicts",
    "softConflicts"
  ],
  "type": "object",
  "properties": {
    "entitiesCopied": {
      "type": "array",
      "description": "the entities that were successfully copied into the workspace",
      "items": {
        "$ref": "#/$defs/AttributeEntityReference"
      }
    },
    "hardConflicts": {
      "type": "array",
      "description": "these entities already exist in your workspace",
      "items": {
        "$ref": "#/$defs/EntityHardConflict"
      }
    },
    "softConflicts": {
      "type": "array",
      "description": "the conflicts within your entity subtrees. note that this will be empty if there are hard conflicts",
      "items": {
        "$ref": "#/$defs/EntitySoftConflict"
      }
    }
  },
  "$defs": {
    "AttributeEntityReference": {
      "required": [
        "entityName",
        "entityType"
      ],
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "The type of the entity"
        },
        "entityName": {
          "type": "string",
          "description": "The name of the entity"
        }
      },
      "description": ""
    },
    "EntityHardConflict": {
      "required": [
        "entityName",
        "entityType"
      ],
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "the type of the entity"
        },
        "entityName": {
          "type": "string",
          "description": "the name of the entity"
        }
      },
      "description": ""
    },
    "EntitySoftConflict": {
      "required": [
        "conflicts",
        "entityName",
        "entityType"
      ],
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "the type of the entity"
        },
        "entityName": {
          "type": "string",
          "description": "the name of the entity"
        },
        "conflicts": {
          "type": "array",
          "description": "the next entity in the path to the conflict",
          "items": {
            "$ref": "#/$defs/EntitySoftConflict"
          }
        }
      },
      "description": ""
    }
  }
}