{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://idraulicobologna-rinaldi.com/webmcp/contact-form.schema.json",
  "title": "Richiesta contatto WhatsApp - Idraulico Bologna Rinaldi",
  "description": "Schema descrittivo per agenti e strumenti assistivi che identificano il modulo di contatto. L'invio apre WhatsApp e non effettua pagamenti o azioni irreversibili.",
  "type": "object",
  "additionalProperties": false,
  "required": ["name", "tel", "message"],
  "properties": {
    "name": {
      "type": "string",
      "title": "Nome",
      "minLength": 2,
      "maxLength": 120
    },
    "tel": {
      "type": "string",
      "title": "Telefono",
      "pattern": "^[0-9+() .-]{6,30}$"
    },
    "message": {
      "type": "string",
      "title": "Descrizione del problema",
      "minLength": 3,
      "maxLength": 2000
    }
  },
  "x-webmcp": {
    "formId": "contact-form",
    "action": "open-whatsapp-draft",
    "requiresUserConfirmation": true,
    "destination": "https://wa.me/393407800204"
  }
}
