{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/viridi-parente/main/json-schema/viridi-parente-entity-type-version-load-request-schema.json",
  "title": "EntityTypeVersionLoadRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viridi-parente-entities-version-control-controller-api-openapi.yml#/components/schemas/EntityTypeVersionLoadRequest",
  "allOf": [
    {
      "$ref": "#/$defs/VersionLoadRequest"
    },
    {
      "type": "object",
      "properties": {
        "entityTypes": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/EntityTypeVersionLoadConfig"
          }
        },
        "rollbackOnError": {
          "type": "boolean"
        }
      }
    }
  ],
  "$defs": {
    "EntityTypeVersionLoadConfig": {
      "properties": {
        "loadRelations": {
          "type": "boolean"
        },
        "loadAttributes": {
          "type": "boolean"
        },
        "loadCredentials": {
          "type": "boolean"
        },
        "removeOtherEntities": {
          "type": "boolean"
        },
        "findExistingEntityByName": {
          "type": "boolean"
        }
      }
    },
    "VersionLoadRequest": {
      "properties": {
        "versionId": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "SINGLE_ENTITY",
            "ENTITY_TYPE"
          ]
        }
      }
    }
  }
}