{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "FORUMDL_ENABLED": {
      "type": "boolean",
      "default": true,
      "x-aliases": ["SAVE_FORUMDL", "USE_FORUMDL"],
      "description": "Enable forum downloading with forum-dl"
    },
    "FORUMDL_BINARY": {
      "type": "string",
      "default": "forum-dl",
      "description": "Path to forum-dl binary"
    },
    "FORUMDL_TIMEOUT": {
      "type": "integer",
      "default": 3600,
      "minimum": 30,
      "x-fallback": "TIMEOUT",
      "description": "Timeout for forum downloads in seconds"
    },
    "FORUMDL_OUTPUT_FORMAT": {
      "type": "string",
      "default": "jsonl",
      "enum": ["jsonl", "warc", "mbox", "maildir", "mh", "mmdf", "babyl"],
      "description": "Output format for forum downloads"
    },
    "FORUMDL_CHECK_SSL_VALIDITY": {
      "type": "boolean",
      "default": true,
      "x-fallback": "CHECK_SSL_VALIDITY",
      "description": "Whether to verify SSL certificates"
    },
    "FORUMDL_ARGS": {
      "type": "array",
      "items": {"type": "string"},
      "default": [],
      "x-aliases": ["FORUMDL_DEFAULT_ARGS"],
      "description": "Default forum-dl arguments"
    },
    "FORUMDL_ARGS_EXTRA": {
      "type": "array",
      "items": {"type": "string"},
      "default": [],
      "x-aliases": ["FORUMDL_EXTRA_ARGS"],
      "description": "Extra arguments to append to forum-dl command"
    }
  }
}
