{
	"$schema":"https://json-schema.org/draft/2020-12/schema",
	"$id":"http://www.itu.int/schema/ape-list",
	"description":"Structure definition of acquisition device list",	
	"type":"array",
	"items":{
		"$ref":"#/$defs/ape"
	},
	"$defs":{
		"ape":{
			"type":"object",
			"description":"Acquisition device",
			"properties" : {
				"ApeID":{
					"description":"Camera ID",
					"$ref":"/schema/components#/$defs/deviceID"
				},
				"Name":{
					"description":"Camera name",
					"maxLength":100,
					"type":"string"
				},
				"Model":{
					"description":"Camera model",
					"type":"string",
					"maxLength":100
				},
				"IPAddr":{
					"type":"string",
					"format":"ipv4"
				},
				"IPV6Addr":{
					"type":"string",
					"format":"ipv6"
				},
				"Port":{
					"type":"integer"
				},
				"Longtitude":{
					"description":"Earth latitude and longitude coordinates, accurate to 6 decimal places",
					"type":"number",
					"maximum":180,
					"minimum":-180
				},
				"Latitude":{
					"description":"Earth latitude and longitude coordinates, accurate to 6 decimal places",
					"type":"number",
					"maximum":90,
					"minimum":-90
				},
				"PlaceCode":{
					"description":"Region Code",
					"type":"string"
				},
				"Place":{
					"description":"Description of the specific installation location of the camera",
					"type":"string"
				},
				"DepartCode":{
					"description":"Department or industry code of the camera",
					"type":"string"
				},
				"FuncType":{
					"description":"Camera function type",
					"type":"string"
				},
				"PositionType":{
					"description":"Camera acquisition position type",
					"type":"int"
				},
				"CapDirection":{
					"description":"Vehicle capture direction, 0: rear of the car; 1: back rear of the car, compatible with non-video tollgate information equipment",
					"enum":[0,1]
				},
				"MonitorDirection":{
					"description":"Monitoring direction",
					"$ref":"/schema/components#/$defs/hDirection"
				},
				"MonitorAreaDesc":{
					"description":"Monitoring area description",
					"type":"string"
				},
				"IsOnline":{
					"$ref":"/schema/components#/$defs/statusType"
				},
				"OwnerApsID":{
					"description":"ID of the owning acquisition system",
					"deprecated":true,
					"$ref":"/schema/components#/$defs/deviceID"
				},
				"UserId":{
					"description":"User account, used to modify the login account of the acquisition device",
					"type":"string"
				},
				"Password":{
					"description":"Password, used to modify the login password of the acquisition device",
					"type":"string",
					"maxLength":32
				}
			},
			"required":["ApeID","Name","Model","IPAddr","Port","Longtitude","Latitude","PlaceCode","IsOnline"]
		},
		"apeStatus":{
			"type":"object",
			"description":"Acquisition device status object",
			"properties" : {
				"ApeID":{
					"description":"Camera ID",
					"$ref":"/schema/components#/$defs/deviceID"
				},
				"IsOnline":{
					"$ref":"/schema/components#/$defs/statusType"
				},
				"CurrentTime":{
					"description":"Current time",
					"type":"string",
					"format":"dateTime"
				}
			},
			"required":["ApeID","IsOnline","CurrentTime"]
		},
		"apeStatusList":{
			"description":"Acquisition device status list",
			"type":"array",
			"items":{
				"$ref":"#/$defs/apeStatus"
			}
		}
	}
}
