{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-create-zip-archive-request-schema.json",
  "title": "CreateZipArchiveRequest",
  "description": "Request to create a Zip Archive",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-ziparchive-api-openapi.yml#/components/schemas/CreateZipArchiveRequest",
  "type": "object",
  "properties": {
    "FilesInZip": {
      "description": "Top-level files in the root directory fo the zip file",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ZipFile"
      }
    },
    "DirectoriesInZip": {
      "description": "Top-level directories in the root directory of the zip; directories can contain sub-directories and files",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ZipDirectory"
      }
    }
  },
  "$defs": {
    "ZipDirectory": {
      "description": "Representation of a directory in a zip file",
      "type": "object",
      "properties": {
        "DirectoryName": {
          "description": "Name of this directory",
          "type": "string"
        },
        "DirectoriesInDirectory": {
          "description": "Child directories contained directly in this directory",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ZipDirectory"
          }
        },
        "FilesInDirectory": {
          "description": "Child files contained directly in this directory",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ZipFile"
          }
        }
      }
    },
    "ZipFile": {
      "description": "Representation of a file in a zip file",
      "type": "object",
      "properties": {
        "FileName": {
          "description": "Name of this file",
          "type": "string"
        },
        "FileContents": {
          "format": "byte",
          "description": "Contents of this file",
          "type": "string"
        }
      }
    }
  }
}