{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "request_data.schema.json",
  "title": "request_data",
  "type": "object",
  "description": "Payload",
  "properties": {
    "version": {
      "type": "string",
      "description": "Version der JSON bisher 1.0"
    },
    "product": {
      "type": "object",
      "description": "Enthält Daten des Versicherungsnehmers",
      "properties": {
        "type": {
          "$ref": "enum/product_type.schema.json#/$defs/product_type",
          "description": "Produktart"
        }
      }
    },
    "document_requirements": {
      "type": "array",
      "description": "Angeforderte Dokumente",
      "items": {
        "type": "object",
        "properties": {
          "document": {
            "$ref": "enum/document_requirements.schema.json#/$defs/document_requirements"
          }
        }
      }
    },
    "customer": {
      "$ref": "customer.schema.json",
      "description": "Enthält Daten des Versicherungsnehmers"
    },
    "payment": {
      "$ref": "payment.schema.json",
      "description": "Enthält Informationen über die Zahlweise"
    },
    "provider": {
      "$ref": "provider.schema.json",
      "description": "Enthält Daten der Versicherung"
    },
    "tariff": {
      "$ref": "tariff.schema.json",
      "description": "Enthält Daten über den Tarif"
    },
    "previous_insurance": {
      "$ref": "previous_insurance.schema.json",
      "description": "Enthält Vorversicherungsdaten"
    }
  },

  "required": ["version", "product", "document_requirements", "customer", "payment", "provider", "tariff", "previous_insurance"]

}