{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eventship-com/json-schema/eventship-com-external-register-request-schema.json",
  "title": "ExternalRegisterRequest",
  "description": "Request to register an attendee via the external API.\n\nThe host is resolved from the API key. Only free tickets are supported —\npaid tickets require the checkout flow on eventship.com.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eventship-com-registration-api-openapi.yml#/components/schemas/ExternalRegisterRequest",
  "properties": {
    "email": {
      "type": "string",
      "title": "Email",
      "description": "Attendee email address (required)"
    },
    "firstName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Firstname"
    },
    "lastName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lastname"
    },
    "ticketTypeId": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tickettypeid"
    },
    "answers": {
      "items": {
        "$ref": "#/$defs/ExternalRegistrationAnswer"
      },
      "type": "array",
      "title": "Answers",
      "default": []
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "email"
  ],
  "$defs": {
    "ExternalRegistrationAnswer": {
      "properties": {
        "questionId": {
          "type": "integer",
          "title": "Questionid"
        },
        "answerText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Answertext"
        },
        "answerJson": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Answerjson"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "questionId"
      ],
      "title": "ExternalRegistrationAnswer",
      "description": "Answer to a registration question for external API consumers."
    }
  }
}