{
	"$schema":"https://json-schema.org/draft/2020-12/schema",
	"$id":"http://www.itu.int/schema/nonmotor-vehicle-list",
	"description":"Structure definition of non-motor vehicle list",	
	"type":"array",
	"items":{
		"$ref":"#/$defs/nonMotorVehicle"
	},
	"$defs":{
		"nonMotorVehicle":{
			"type":"object",
			"description":"Non-motor vehicle description information content definition",
			"properties" : {
				"MotorVehicleID":{
					"description":"Non-motor vehicle ID",
					"$ref":"/schema/components#/$defs/imageCntObjectId"
				},
				"InfoKind":{
					"$ref":"/schema/components#/$defs/infoKind"
				},
				"SourceID":{
					"description":"VideoID or imageID of the source of the non-motor vehicle object",
					"$ref":"/schema/components#/$defs/basicObjectId"
				},
				"DeviceID":{
					"description":"Device ID",

					"$ref":"/schema/components#/$defs/deviceID"
				},
				"LeftTopX":{
					"description":"X-axis coordinate of the upper left corner of the small picture of non-motor vehicle",
					"$ref":"/schema/components#/$defs/imageCoordinates"
				},
				"LeftTopY":{
					"description":"Y-axis coordinate of the upper left corner of the small picture of the non-motor vehicle",
					"$ref":"/schema/components#/$defs/imageCoordinates"
				},
				"RightBtmX":{
					"description":"X-axis coordinate of the lower right corner of the small picture of non-motor vehicle",
					"$ref":"/schema/components#/$defs/imageCoordinates"
				},
				"RightBtmY":{
					"description":"Y-axis coordinate of the lower right corner of the small picture of non-motor vehicle",
					"$ref":"/schema/components#/$defs/imageCoordinates"
				},
				"HasPlate":{
					"description":"There is a license plate or not",
					"$ref":"/schema/components#/$defs/flag"
				},
				"PlateClass":{
					"$ref":"/schema/motor-vehicle-list#/$defs/motorVehicle/properties/PlateClass"
				},
				"PlateColor":{
					"description":"License plate color",
					"$ref":"/schema/components#/$defs/color"
				},
				"PlateNo":{
					"description":"License plate number",
					"type":"string"
				},
				"PlateDescribe":{
					"description":"License plate description, license plate frame advertising information, including dealership, contact number, etc.",

					"type":"string"
				},
				"NonMotorVehicleStructClass":{
					"description":"Non-motor vehicle structure category",
					"type":"string",
					"pattern":"^\\d{3}$"
				},
				"SubImageInfoListObject":{
					"$ref":"/schema/subimage-info-list"
				},
				"FeatureInfoListObject":{
					"$ref":"/schema/feature-ext-result-list#/$defs/featureInfoList"
				},
				"TabID":{
					"description":"Attribution category label",
					"$ref":"/schema/components#/$defs/basicObjectId"
				}
			},
			
			"required":["NonMotorVehicleID","InfoKind","SourceID"],
			
			
			"if":{
				"properties":{	"InfoKind":1	}
			},
			"then":{
				"required":["DeviceID","LeftTopX","LeftTopY","RightBtmX","RightBtmY"]
			}
			
		}
	}
}
