{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/interfibra-it/json-schema/interfibra-it-link-schema.json",
  "title": "Link",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/interfibra-it-openapi.json#/components/schemas/Link",
  "type": "object",
  "properties": {
    "link": {
      "type": "string",
      "format": "uri"
    },
    "cliente": {
      "type": "string",
      "enum": [
        "privato",
        "azienda"
      ]
    },
    "indirizzoRiconosciuto": {
      "type": "string"
    },
    "interpretazione": {
      "type": "object",
      "description": "Solo se la via scritta non è quella trovata (es. il nome senza una parola): la verifica è su `inteso`. Dillo al cliente («ho verificato» e la via con il civico) e, se non è la sua via, usa le alternative.",
      "properties": {
        "scritto": {
          "type": "string",
          "description": "La via come è arrivata nella domanda."
        },
        "inteso": {
          "type": "string",
          "description": "La via verificata, es. \"VIALE GIUSEPPE FERRO\"."
        }
      },
      "required": [
        "scritto",
        "inteso"
      ]
    },
    "tecnologia": {
      "type": [
        "string",
        "null"
      ]
    },
    "coperturaVerificata": {
      "type": "boolean"
    },
    "motivoCoperturaNonVerificata": {
      "type": "string"
    },
    "cosaServeAlCliente": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "avvertenza": {
      "type": "string"
    }
  },
  "required": [
    "link",
    "cliente",
    "coperturaVerificata"
  ]
}