{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oqda-de/json-schema/oqda-de-warteliste-anfrage-schema.json",
  "title": "WartelisteAnfrage",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oqda-de-openapi.json#/components/schemas/WartelisteAnfrage",
  "type": "object",
  "required": [
    "email",
    "einwilligung"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 200,
      "description": "E-Mail-Adresse der Person, die eingetragen werden möchte. Nie raten oder erfinden."
    },
    "betrieb": {
      "type": "string",
      "enum": [
        "Fitnessstudio",
        "Praxis oder Gesundheit",
        "Büro oder Dienstleister",
        "Labor oder Prüfbetrieb",
        "Etwas anderes"
      ],
      "description": "Art des Betriebs."
    },
    "standorte": {
      "type": "string",
      "enum": [
        "Einer",
        "2 bis 10",
        "Mehr als 10"
      ],
      "description": "Zahl der Standorte."
    },
    "einwilligung": {
      "type": "object",
      "required": [
        "text"
      ],
      "description": "Die Zustimmung der Person.",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 600,
          "description": "Wortlaut, dem die Person zugestimmt hat: „Ihr dürft mich per E-Mail kontaktieren, sobald ein Platz auf der Warteliste frei wird.“"
        },
        "zeitpunkt": {
          "type": "string",
          "format": "date-time",
          "description": "Wann die Person zugestimmt hat."
        }
      }
    },
    "quelle": {
      "type": "string",
      "maxLength": 60,
      "description": "Woher der Eintrag kommt, z. B. „ki-agent“."
    },
    "seite": {
      "type": "string",
      "maxLength": 200,
      "description": "Seite oder Anwendung, über die eingetragen wird."
    }
  }
}