{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.opencityitalia.it/website/comuni/pagina_sito/v1.json",
  "title": "Pagina del sito",
  "description": "Pagina generica del sito istituzionale di un comune. I campi elencati sono il contratto minimo garantito; tenant con moduli opzionali possono esporre campi aggiuntivi.",
  "type": "object",
  "properties": {
    "id": {
      "title": "Identificativo",
      "type": "string",
      "description": "Identificativo composito nel formato tenantId:objectId (es. bugliano:228)"
    },
    "name": {
      "title": "Titolo",
      "type": "string",
      "maxLength": 255
    },
    "short_name": {
      "title": "Titolo breve",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255
    },
    "abstract": {
      "title": "Descrizione breve",
      "type": [
        "string",
        "null"
      ]
    },
    "published_date": {
      "title": "Data pubblicazione",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "tenant_id": {
      "title": "Ente",
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "title": "Data creazione",
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "title": "Data aggiornamento",
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "tenant_id",
    "created_at",
    "updated_at"
  ]
}
