{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/programmes-net/json-schema/programmes-net-compress-decompress-schema.json",
  "title": "compress.decompress",
  "description": "Decompress Base64 or hex gzip/deflate data back to text (output up to 256 KB).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/programmes-net-encoders-decoders-api-openapi.yml#/components/schemas/compress.decompress",
  "type": "object",
  "properties": {
    "operation": {
      "const": "decompress"
    },
    "input": {
      "type": "string",
      "description": "The compressed bytes, as Base64 or hex.",
      "maxLength": 32768
    },
    "options": {
      "type": "object",
      "properties": {
        "algorithm": {
          "type": "string",
          "description": "auto reads the format from the first bytes.",
          "enum": [
            "auto",
            "gzip",
            "deflate",
            "deflate-raw"
          ],
          "default": "auto"
        },
        "encoding": {
          "type": "string",
          "description": "How the compressed bytes are written.",
          "enum": [
            "base64",
            "hex"
          ],
          "default": "base64"
        }
      }
    }
  },
  "required": [
    "operation"
  ]
}