{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fatheron-dev/json-schema/fatheron-dev-imap-connect-body-schema.json",
  "title": "ImapConnectBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fatheron-dev-mail-sync-api-openapi.yml#/components/schemas/ImapConnectBody",
  "properties": {
    "host": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Host"
    },
    "username": {
      "type": "string",
      "maxLength": 320,
      "minLength": 1,
      "title": "Username"
    },
    "password": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1,
      "title": "Password"
    },
    "port": {
      "type": "integer",
      "title": "Port",
      "default": 993
    },
    "use_ssl": {
      "type": "boolean",
      "title": "Use Ssl",
      "default": true
    },
    "preset_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Preset Id"
    }
  },
  "type": "object",
  "required": [
    "host",
    "username",
    "password"
  ]
}