{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "tierhaftpflichtversicherung.schema.json",
  "title": "tierhaftpflichtversicherung",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "pattern": "3.1.0",
      "description": "Version der JSON bisher 3.1"
    },
    "product": {
      "type": "object",
      "description": "Enthält Daten des Versicherungsnehmers",
      "properties": {
        "type": {
          "$ref": "enums/product_type.schema.json#/$defs/product_type",
          "description": "Produktart"
        }
      }
    },
    "document_requirements": {
      "type": "array",
      "minItems": 1,
      "items": {
        "document": {
          "$ref": "enums/document_requirements.schema.json#/$defs/document"
        }
      }
    },
    "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"
  ]
}