44 "title" : " The MDS Agency Schema, register vehicle body" ,
55 "type" : " object" ,
66 "definitions" : {
7- "propulsion_type " : {
8- "$id" : " #/definitions/propulsion_type " ,
7+ "propulsion_types " : {
8+ "$id" : " #/definitions/propulsion_types " ,
99 "type" : " array" ,
1010 "description" : " The type of propulsion; allows multiple values" ,
1111 "items" : {
1717 " human"
1818 ]
1919 },
20+ "uniqueItems" : true ,
2021 "minItems" : 1
2122 },
2223 "string" : {
3839 " bicycle" ,
3940 " car" ,
4041 " scooter" ,
41- " moped"
42+ " moped" ,
43+ " other"
4244 ]
4345 },
4446 "uuid" : {
4547 "$id" : " #/definitions/uuid" ,
4648 "type" : " string" ,
47- "title " : " A UUID used to uniquely identifty an object" ,
49+ "description " : " A UUID used to uniquely identifty an object" ,
4850 "default" : " " ,
4951 "examples" : [
5052 " 3c9604d6-b5ee-11e8-96f8-529269fb1459"
5557 "required" : [
5658 " device_id" ,
5759 " vehicle_id" ,
58- " type " ,
59- " propulsion "
60+ " vehicle_type " ,
61+ " propulsion_types "
6062 ],
6163 "properties" : {
64+ "provider_id" : {
65+ "$id" : " #/definitions/vehicle/properties/provider_id" ,
66+ "$ref" : " #/definitions/uuid" ,
67+ "description" : " The UUID for the Provider, unique within MDS"
68+ },
6269 "device_id" : {
63- "$id" : " #/properties/device_id" ,
70+ "$id" : " #/definitions/vehicle/ properties/device_id" ,
6471 "$ref" : " #/definitions/uuid" ,
65- "description" : " Provided by Operator to uniquely identify a vehicle "
72+ "description" : " A unique device ID in UUID format "
6673 },
6774 "vehicle_id" : {
68- "$id" : " #/properties/vehicle_id" ,
75+ "$id" : " #/definitions/vehicle/ properties/vehicle_id" ,
6976 "$ref" : " #/definitions/string" ,
7077 "description" : " The Vehicle Identification Number visible on the vehicle itself"
7178 },
72- "type " : {
73- "$id" : " #/properties/type " ,
79+ "vehicle_type " : {
80+ "$id" : " #/definitions/vehicle/ properties/vehicle_type " ,
7481 "$ref" : " #/definitions/vehicle_type" ,
7582 "description" : " The type of vehicle"
7683 },
77- "propulsion " : {
78- "$id" : " #/properties/propulsion " ,
79- "$ref" : " #/definitions/propulsion_type " ,
84+ "propulsion_types " : {
85+ "$id" : " #/definitions/vehicle/ properties/propulsion_types " ,
86+ "$ref" : " #/definitions/propulsion_types " ,
8087 "description" : " The type of propulsion; allows multiple values"
8188 },
8289 "year" : {
100107 }
101108 },
102109 "additionalProperties" : false
103- }
110+ }
0 commit comments