{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://example.com/root.json",
  "type": "object",
  "required": [
    "type",
    "features"
  ],
  "properties": {
    "type": {
      "examples": [
        "FeatureCollection"
      ]
    },
    "features": {
      "type": ["array", "null"],
      "items": {
          "type": "object",
          "required": [
            "type",
            "geometry",
            "properties",
            "HOR",
            "VER"
          ],
          "properties": {
            "type": {
              "type": "string",
              "examples": [
                "name"
              ]
            },
            "geometry": {
              "minLength": 1,
              "type": ["object", "null"],
              "examples": [
                "Point"
              ]
            },
            "properties": {
              "required": [
                "name",
                "group",
                "active_periods"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "examples": [
                    "CFGLOC108440"
                  ]
                },
                "group": {
                  "type": "string",
                  "examples": [
                    "test-group_1"
                  ]
                },
                "active_periods": {
                  "minLength": 0,
                  "type": "array",
                  "items": {
                    "minLength": 2,
                    "type": "object",
                    "required": [
                      "start_date",
                      "end_date"
                    ],
                    "properties": {
                      "start_date": {
                        "type": ["string", "null"],
                        "format": "date-time",
                        "examples": [
                          "2017-02-07T00:17:20Z"
                        ]
                      },
                      "end_date": {
                        "type": ["string", "null"],
                        "format": "date-time",
                        "examples": [
                          "2017-02-07T00:17:20Z"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "HOR": {
            "type": ["string", "null"],
            "examples": [
              "200"
            ]
          },
          "VER": {
            "type": ["string", "null"],
            "examples": [
              "000"
            ]
          }
        }
      }
    }
  }
