{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onclarity-com/json-schema/onclarity-com-send-anecdote-survey-email-request-schema.json",
  "title": "SendAnecdoteSurveyEmailRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onclarity-com-anecdote-surveys-api-openapi.yml#/components/schemas/SendAnecdoteSurveyEmailRequest",
  "properties": {
    "sender": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$",
      "title": "Sender"
    },
    "recipients": {
      "items": {
        "$ref": "#/$defs/Recipient"
      },
      "type": "array",
      "title": "Recipients"
    },
    "embeddable_codes": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Embeddable Codes"
    },
    "subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subject"
    },
    "template_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Template Id"
    }
  },
  "type": "object",
  "required": [
    "sender",
    "recipients"
  ],
  "$defs": {
    "Recipient": {
      "properties": {
        "email": {
          "type": "string",
          "title": "Email"
        },
        "attributes": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Attributes"
        }
      },
      "type": "object",
      "required": [
        "email"
      ],
      "title": "Recipient"
    }
  }
}