{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.delmaragency.com/service.schema.json",
  "title": "DelMarServiceRequest",
  "description": "Customer service intake for existing Del Mar Insurance policies. Broker follow-up only — no automatic policy changes.",
  "type": "object",
  "additionalProperties": false,
  "required": ["name", "email", "topic", "message", "authorizedByCustomer"],
  "properties": {
    "name": { "type": "string", "minLength": 2 },
    "email": { "type": "string", "format": "email" },
    "phone": { "type": "string" },
    "policyNumber": { "type": "string" },
    "topic": {
      "type": "string",
      "enum": [
        "policy-question",
        "billing",
        "id-cards",
        "change-coverage",
        "claim",
        "other"
      ]
    },
    "message": { "type": "string", "minLength": 10 },
    "authorizedByCustomer": {
      "type": "boolean",
      "description": "Must be true only after the customer explicitly authorizes submit."
    },
    "source": { "type": "string", "description": "e.g. assistant, web" }
  }
}
