{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/useorgx-com/json-schema/useorgx-com-legacy-entity-batch-summary-schema.json",
  "title": "LegacyEntityBatchSummary",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/useorgx-com-openapi.yml#/components/schemas/LegacyEntityBatchSummary",
  "type": "object",
  "properties": {
    "summary": {
      "type": "string"
    },
    "total": {
      "type": "number"
    },
    "created_count": {
      "type": "number"
    },
    "failed_count": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "number"
          },
          "success": {
            "type": "boolean"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "ref": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "type": "string"
          },
          "skipped": {
            "type": "boolean"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string"
                },
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "path",
                "from",
                "to",
                "reason"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "index",
          "success",
          "type"
        ],
        "additionalProperties": false
      }
    },
    "created": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "number"
          },
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "ref": {
            "type": "string"
          }
        },
        "required": [
          "index",
          "type",
          "id"
        ],
        "additionalProperties": false
      }
    },
    "failed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "number"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "ref": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "index",
          "type",
          "error"
        ],
        "additionalProperties": false
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "from",
          "to",
          "reason"
        ],
        "additionalProperties": false
      }
    },
    "ref_map": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "summary",
    "total",
    "created_count",
    "failed_count",
    "results",
    "created",
    "failed",
    "warnings",
    "ref_map"
  ],
  "additionalProperties": false
}