{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "",
  "type": "object",
  "properties": {
    "operator": {
      "type": "string",
      "enum": [
        "AND",
        "OR"
      ],
      "default": "OR"
    },
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "minProperties": 1,
        "properties": {
          "geofence_segment_id": {
            "type": "integer",
            "format": "int32",
            "example": 45
          },
          "geofence_segment_factual_id": {
            "type": "string"
          }
        }
      }
    }
  }
}