-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathestimate-delivery-time-schema.json
84 lines (84 loc) · 2.11 KB
/
estimate-delivery-time-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Estimate Delivery Time Input",
"type": "object",
"required": [
"baseDeliveryCost",
"noOfVehicles",
"maxSpeed",
"maxCarriableWeight",
"parcels"
],
"properties": {
"baseDeliveryCost": {
"$id": "#root/baseDeliveryCost",
"title": "Base Delivery Cost",
"type": "integer",
"examples": [100],
"default": 0
},
"noOfVehicles": {
"$id": "#root/noOfVehicles",
"title": "Number of Vehicles",
"type": "integer",
"examples": [2],
"default": 0
},
"maxSpeed": {
"$id": "#root/maxSpeed",
"title": "Maximum Speed",
"type": "integer",
"examples": [70],
"default": 0
},
"maxCarriableWeight": {
"$id": "#root/maxCarriableWeight",
"title": "Maximum Carriable Weight",
"type": "integer",
"examples": [200],
"default": 0
},
"parcels": {
"$id": "#root/parcels",
"title": "Parcels",
"type": "array",
"default": [],
"items": {
"$id": "#root/parcels/items",
"title": "Items",
"type": "object",
"required": ["id", "weight", "distance", "couponCode"],
"properties": {
"id": {
"$id": "#root/parcels/items/id",
"title": "Parcel ID",
"type": "string",
"examples": ["PKG1"],
"default": ""
},
"weight": {
"$id": "#root/parcels/items/weight",
"title": "Parcel Weight in Kilograms",
"type": "integer",
"examples": [50],
"default": 0
},
"distance": {
"$id": "#root/parcels/items/distance",
"title": "Parcel Distance in Kilometers",
"type": "integer",
"examples": [30],
"default": 0
},
"couponCode": {
"$id": "#root/parcels/items/couponCode",
"title": "Coupon Code",
"type": "string",
"examples": ["OFR001"],
"default": ""
}
}
}
}
}
}