{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-api-email-configuration-schema.json",
  "title": "ApiEmailConfiguration",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-email-api-openapi.yml#/components/schemas/ApiEmailConfiguration",
  "required": [
    "fromAddress",
    "host",
    "port"
  ],
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "host": {
      "minLength": 1,
      "type": "string"
    },
    "port": {
      "type": "integer",
      "format": "int32"
    },
    "username": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "fromAddress": {
      "minLength": 1,
      "type": "string",
      "format": "email"
    },
    "subjectPrefix": {
      "type": "string",
      "description": "A prefix to add to all email subjects to aid in identifying automated emails"
    },
    "startTlsEnabled": {
      "type": "boolean",
      "description": "Enable STARTTLS Support for Insecure Connections"
    },
    "startTlsRequired": {
      "type": "boolean",
      "description": "Require STARTTLS Support"
    },
    "sslOnConnectEnabled": {
      "type": "boolean",
      "description": "Enable SSL/TLS Encryption upon Connection"
    },
    "sslServerIdentityCheckEnabled": {
      "type": "boolean",
      "description": "Verify the server certificate when using TLS or SSL"
    },
    "nexusTrustStoreEnabled": {
      "type": "boolean",
      "description": "Use the Nexus Repository Manager's certificate truststore"
    }
  }
}