{
  "$schema": "http://json-schema.org/schema#",
  "type": "object",
  "properties": {
    "deployment": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "region": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "name",
        "region"
      ]
    },
    "communities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "population": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "population"
        ]
      }
    },
    "sensors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "threshold": {
            "type": "number"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled",
          "threshold",
          "type"
        ]
      }
    }
  },
  "required": [
    "communities",
    "deployment",
    "sensors"
  ]
}