{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/piazzainfesta-it/json-schema/piazzainfesta-it-comune-schema.json",
  "title": "Comune",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/piazzainfesta-it-openapi.json#/components/schemas/Comune",
  "type": "object",
  "properties": {
    "comune": {
      "type": "string",
      "description": "Identificativo (slug): il valore da usare nel filtro comune di /v1/eventi"
    },
    "comune_nome": {
      "type": [
        "string",
        "null"
      ]
    },
    "provincia": {
      "type": [
        "string",
        "null"
      ]
    },
    "regione": {
      "type": [
        "string",
        "null"
      ]
    },
    "lat": {
      "type": [
        "number",
        "null"
      ],
      "description": "Centroide del comune"
    },
    "lon": {
      "type": [
        "number",
        "null"
      ]
    },
    "eventi": {
      "type": "integer",
      "description": "Numero di eventi pubblicati (0 se il comune non ne ha)"
    }
  }
}