{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "description": "Descriptor of a streams chart response",
  "properties": {
    "items": {
      "type": "array",
      "minItems": 2,
      "maxItems": 90,
      "description": "Array of all the point for charts.",
      "items": {
        "type": "object",
        "description": "Descriptor of streams chart slice",
        "properties": {
          "date": {
            "type": "string",
            "minLength": 10
          },
          "overall_number_of_streams": {
            "type": "integer",
            "minimum": 0
          },
          "streams_from_passive_discovery": {
            "type": "integer",
            "minimum": 0
          },
          "streams_from_active_discovery": {
            "type": "integer",
            "minimum": 0
          },
          "streams_from_collection": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "date",
          "overall_number_of_streams",
          "streams_from_passive_discovery",
          "streams_from_active_discovery",
          "streams_from_collection"]
      }
    },
    "overall_number_of_streams": {
      "type": "integer",
      "minimum": 0
    },
    "streams_from_passive_discovery": {
      "type": "integer",
      "minimum": 0
    },
    "streams_from_active_discovery": {
      "type": "integer",
      "minimum": 0
    },
    "streams_from_collection": {
      "type": "integer",
      "minimum": 0
    },
    "streams_from_passive_discovery_pct": {
      "type": "integer",
      "minimum": 0
    },
    "streams_from_active_discovery_pct": {
      "type": "integer",
      "minimum": 0
    },
    "streams_from_collection_pct": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "items",
    "overall_number_of_streams",
    "streams_from_passive_discovery",
    "streams_from_active_discovery",
    "streams_from_collection",
    "streams_from_passive_discovery_pct",
    "streams_from_active_discovery_pct",
    "streams_from_collection_pct"
  ]
}
