{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"ADMDownload",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. ADM Download",
	"properties":{
    "log_context": {
      "$ref": "/resources/schema/analytics/client/v3/LogContext.json",
      "description": "Required Log Context Reference"
    },
    "event_name": {
      "type": "string",
      "enum": [
        "ADM_DOWNLOAD"
      ]
    },
    "schema_definition": {
      "type": "string",
      "enum": [
        "ADMDownload"
      ]
    },
    "device_id":{
        "type": "string",
        "description": "Unique id of the device from which request is sent for update"
    },
    "area_type": {
      "$ref": "/resources/schema/analytics/client/v3/type/ADMAreaType.json",
      "description": "Type of area to be downloaded"
    },
    "token": {
        "type": "string",
        "description": "Callback token"
    },
    "status": {
          "type": "string",
          "enum": [
            "SUCCESSFUL",
            "CANCELLED",
            "FAILED"
          ],
          "description": "Status of API call"
      },
    "error_id": {
          "type": "string",
          "description": "Unique id that links to the error thrown"
    },
    "layers": {
        "type": "array",
        "items":{
            "$ref": "/resources/schema/analytics/client/v3/ADMLayerInfo.json"
        },
        "description": "An array of layers which are part of this download"

    }
	},
	"required":[
    "log_context",
    "event_name",
    "schema_definition",
    "device_id",
    "area_type",
    "token",
    "status",
    "layers"
	]
}