-
Notifications
You must be signed in to change notification settings - Fork 2
/
postman_collection.json
646 lines (646 loc) · 31 KB
/
postman_collection.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
{
"info": {
"_postman_id": "27321ca9-686d-4b8b-bd33-e6dff3ceb5ff",
"name": "DCSA-OVS",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Load Test Data",
"item": [
{
"name": "Load Test Data",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/unofficial/dataloader/load/test",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"unofficial",
"dataloader",
"load",
"test"
]
}
},
"response": []
}
]
},
{
"name": "GET service schedules",
"item": [
{
"name": "Positive test cases",
"item": [
{
"name": "Get All",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
]
}
},
"response": []
},
{
"name": "By CarrierServiceCode",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter carrierServiceCode\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" pm.expect(item.carrierServiceCode).to.equal(\"B_HLC\");\r",
" });\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?carrierServiceCode=B_HLC",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "carrierServiceCode",
"value": "B_HLC"
}
]
}
},
"response": []
},
{
"name": "By UniversalServiceReference",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter universalServiceReference\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" pm.expect(item.universalServiceReference).to.equal(\"SR00002B\");\r",
" });\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?universalServiceReference=SR00002B",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "universalServiceReference",
"value": "SR00002B"
}
]
}
},
"response": []
},
{
"name": "By VesselIMONumber",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter vesselIMONumber\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" _.each(item.vesselSchedules, (item) => {\r",
" pm.expect(item.vesselIMONumber).to.equal(\"9811000\")\r",
" })\r",
" });\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?vesselIMONumber=9811000",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "vesselIMONumber",
"value": "9811000"
}
]
}
},
"response": []
},
{
"name": "By VesselName",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter vesselName\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" _.each(item.vesselSchedules, (item) => {\r",
" pm.expect(item.vesselName).to.equal(\"King of the Seas\")\r",
" })\r",
" });\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?vesselName=King of the Seas",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "vesselName",
"value": "King of the Seas"
}
]
}
},
"response": []
},
{
"name": "By VoyageNumber",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter voyageNumber\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" _.each(item.vesselSchedules, (item) => {\r",
" _.each(item.transportCalls, (item) => {\r",
" pm.expect(item.carrierImportVoyageNumber).to.equal(\"4419W\");\r",
" });\r",
" });\r",
" });\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?voyageNumber=4419W",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "voyageNumber",
"value": "4419W"
}
]
}
},
"response": []
},
{
"name": "By UniversalVoyageReference",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter universalVoyageReference\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" _.each(item.vesselSchedules, (item) => {\r",
" _.each(item.transportCalls, (item) => {\r",
" pm.expect(item.universalImportVoyageReference).to.equal(\"657AS\");\r",
" });\r",
" });\r",
" });\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?universalVoyageReference=657AS",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "universalVoyageReference",
"value": "657AS"
}
]
}
},
"response": []
},
{
"name": "By UNLocationCode",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter UNLocationCode\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" _.each(item.vesselSchedules, (item) => {\r",
" _.each(item.transportCalls, (item) => {\r",
" pm.expect(item.location.UNLocationCode).to.equal(\"JPTYO\");\r",
" });\r",
" });\r",
" });\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?UNLocationCode=JPTYO",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "UNLocationCode",
"value": "JPTYO"
}
]
}
},
"response": []
},
{
"name": "By FacilitySMDGCode",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter facilitySMDGCode\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" _.each(item.vesselSchedules, (item) => {\r",
" _.each(item.transportCalls, (item) => {\r",
" pm.expect(item.location.facilitySMDGCode).to.equal(\"BTP\");\r",
" });\r",
" });\r",
" });\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?facilitySMDGCode=BTP",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "facilitySMDGCode",
"value": "BTP"
}
]
}
},
"response": []
},
{
"name": "By startDate & endDate",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var from = new Date(pm.request.url.query.toObject().startDate);\r",
"var to = new Date(pm.request.url.query.toObject().endDate);\r",
"pm.test(\"All response body matches query parameter date range\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" _.each(item.vesselSchedules, (item) => {\r",
" _.each(item.transportCalls, (item) => {\r",
" _.each(item.timestamps, (item) => {\r",
" const date = new Date(item.eventDateTime);\r",
" if (from <= date && date <= to) {\r",
" } else {\r",
" console.log(\"Date is not in Range\");\r",
" pm.expect.fail(\"Dates not in Range\");\r",
" }\r",
" });\r",
" });\r",
" });\r",
" });\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?startDate=2003-05-02&endDate=2003-05-04",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "startDate",
"value": "2003-05-02"
},
{
"key": "endDate",
"value": "2003-05-04"
}
]
}
},
"response": []
},
{
"name": "By Combo: UniversalServiceReference & FacilitySMDGCode",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"All response body matches query parameter universalServiceReference & facilitySMDGCode\", () => {\r",
" const jsonData = pm.response.json();\r",
" jsonData.map((item) => {\r",
" pm.expect(item.universalServiceReference).to.equal(\"SR00002B\")\r",
" _.each(item.vesselSchedules, (item) => {\r",
" _.each(item.transportCalls, (item) => {\r",
" pm.expect(item.location.facilitySMDGCode).to.equal(\"BTP\");\r",
" });\r",
" });\r",
" });\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?facilitySMDGCode=BTP&universalServiceReference=SR00002B",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "facilitySMDGCode",
"value": "BTP"
},
{
"key": "universalServiceReference",
"value": "SR00002B"
}
]
}
},
"response": []
},
{
"name": "By Limit 3",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Limit is respected\", () => {\r",
" const jsonData = pm.response.json();\r",
" pm.expect(jsonData.length).to.eql(3);\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}{{OVS_CONTEXT_PATH}}/service-schedules?limit=3",
"host": [
"{{BASE_URL}}{{OVS_CONTEXT_PATH}}"
],
"path": [
"service-schedules"
],
"query": [
{
"key": "limit",
"value": "3"
}
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"const schema = pm.collectionVariables.get(\"OVS_SERVICE_SCHEDULE_SCHEMA\");",
"const schemaObject = JSON.parse(schema);",
"",
"pm.test('Schema is valid', () => {",
" pm.response.to.have.jsonSchema(schemaObject);",
"});",
"pm.test(\"Status code is 200\", () => {",
" pm.response.to.have.status(200);",
"});"
]
}
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"API-Version header is set correctly\", () => {",
" pm.expect(pm.response.headers.get(\"API-Version\")).to.eql(pm.collectionVariables.get(\"OVS_SPEC_VERSION\"));",
"});"
]
}
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"API-Version is present\", () => {",
" pm.response.to.have.header(\"API-Version\");",
"});",
""
]
}
}
],
"variable": [
{
"key": "BASE_URL",
"value": "http://localhost:9090",
"type": "string"
},
{
"key": "OVS_SPEC_VERSION",
"value": "3.0.0",
"type": "string"
},
{
"key": "OVS_CONTEXT_PATH",
"value": "/ovs/v3",
"type": "string"
},
{
"key": "OVS_SERVICE_SCHEDULE_SCHEMA",
"value": "{\n\"type\": \"array\",\n\"items\": {\n \"required\": [\n \"carrierServiceName\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"carrierServiceName\": {\n \"maxLength\": 50,\n \"type\": \"string\",\n \"description\": \"The name of the service \\n\"\n },\n \"carrierServiceCode\": {\n \"maxLength\": 11,\n \"type\": \"string\",\n \"description\": \"The Carrier specific code of the service for which the schedule details are published.\\n\"\n },\n \"universalServiceReference\": {\n \"maxLength\": 8,\n \"pattern\": \"SR\\\\d{5}[A-Z]\",\n \"type\": \"string\",\n \"description\": \"A global unique service reference, as per DCSA standard, agreed by VSA partners for the service. The service reference must match the regular expression pattern: `SR\\\\d{5}[A-Z]`. The letters `SR` followed by `5 digits`, followed by a checksum-character as a capital letter from `A to Z`.\\n\"\n },\n \"vesselSchedules\": {\n \"type\": \"array\",\n \"items\": {\n \"required\": [\n \"isDummyVessel\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"vesselOperatorSMDGLinerCode\": {\n \"maxLength\": 10,\n \"type\": \"string\",\n \"description\": \"The carrier who is in charge of the vessel operation based on the SMDG code\\n\"\n },\n \"vesselIMONumber\": {\n \"maxLength\": 7,\n \"type\": \"string\",\n \"description\": \"The unique reference for a registered Vessel. The reference is the International Maritime Organisation (IMO) number, also sometimes known as the Lloyd's register code, which does not change during the lifetime of the vessel\\n\"\n },\n \"vesselName\": {\n \"maxLength\": 35,\n \"type\": \"string\",\n \"description\": \"The name of the Vessel given by the Vessel Operator and registered with IMO.\\n\"\n },\n \"vesselCallSign\": {\n \"maxLength\": 10,\n \"type\": \"string\",\n \"description\": \"A unique alphanumeric identity that belongs to the vessel and is assigned by the International Telecommunication Union (ITU). It consists of a threeletter alphanumeric prefix that indicates nationality, followed by one to four characters to identify the individual vessel. For instance, vessels registered under Denmark are assigned the prefix ranges 5PA-5QZ, OUAOZZ, and XPA-XPZ. The Call Sign changes whenever a vessel changes its flag.\\n\"\n },\n \"isDummyVessel\": {\n \"type\": \"boolean\",\n \"description\": \"Is this a dummy vessel. In case no vessel has been asigned yet - this property can be set to `true` indicating that the vesselIMONumber does not exist.\\n\"\n },\n \"transportCalls\": {\n \"type\": \"array\",\n \"items\": {\n \"required\": [\n \"carrierImportVoyageNumber\",\n \"transportCallReference\"\n ],\n \"type\": \"object\",\n \"description\": \"A transportCall in the schedule. A transportCall can be either just a Port or further specified as a terminalCall.\\n\\nThe order of the list is the sequence of the list\\n\",\n \"properties\": {\n \"portVisitReference\": {\n \"maxLength\": 50,\n \"type\": \"string\",\n \"description\": \"The unique reference that can be used to link different `transportCallReferences` to the same port visit. The reference is provided by the port to uniquely identify a port call\\n\"\n },\n \"transportCallReference\": {\n \"maxLength\": 100,\n \"type\": \"string\",\n \"description\": \"A carrier definied reference to a TransportCall.\\n\\nIn the case the Means of Transport is a `Vessel` and the facility is a `Port`/`Terminal` - this reference should be considered a **Terminal Call Reference**\\n\"\n },\n \"carrierImportVoyageNumber\": {\n \"maxLength\": 50,\n \"type\": \"string\",\n \"description\": \"The identifier of an import voyage. The vessel operator-specific identifier of the import Voyage.\\n\"\n },\n \"carrierExportVoyageNumber\": {\n \"maxLength\": 50,\n \"type\": \"string\",\n \"description\": \"The identifier of an export voyage. The vessel operator-specific identifier of the export Voyage.\\n\"\n },\n \"universalImportVoyageReference\": {\n \"pattern\": \"\\\\d{2}[0-9A-Z]{2}[NEWS]\",\n \"type\": \"string\",\n \"description\": \"A global unique voyage reference for the import Voyage, as per DCSA standard, agreed by VSA partners for the voyage. The voyage reference must match the regular expression pattern: `\\\\d{2}[0-9A-Z]{2}[NEWS]`\\n- `2 digits` for the year\\n- `2 alphanumeric characters` for the sequence number of the voyage\\n- `1 character` for the direction/haul (`N`orth, `E`ast, `W`est or `S`outh).\\n\"\n },\n \"universalExportVoyageReference\": {\n \"pattern\": \"\\\\d{2}[0-9A-Z]{2}[NEWS]\",\n \"type\": \"string\",\n \"description\": \"A global unique voyage reference for the export Voyage, as per DCSA standard, agreed by VSA partners for the voyage. The voyage reference must match the regular expression pattern: `\\\\d{2}[0-9A-Z]{2}[NEWS]`\\n- `2 digits` for the year\\n- `2 alphanumeric characters` for the sequence number of the voyage\\n- `1 character` for the direction/haul (`N`orth, `E`ast, `W`est or `S`outh).\\n\"\n },\n \"location\": {\n \"type\": \"object\",\n \"description\": \"General purpose object to capture location-related data, the location can be specified in any of the following ways: `UN Location Code`, a `Facility` or an `Address`.\\n\",\n \"anyOf\": [\n {\n \"required\": [\n \"UNLocationCode\"\n ],\n \"type\": \"object\",\n \"description\": \"An interface used to express a location using a `Un Location Code`\\n\",\n \"properties\": {\n \"locationName\": {\n \"maxLength\": 100,\n \"type\": \"string\",\n \"description\": \"The name of the location.\"\n },\n \"UNLocationCode\": {\n \"maxLength\": 5,\n \"type\": \"string\",\n \"description\": \"The UN Location code specifying where the place is located.\"\n }\n }\n },\n {\n \"required\": [\n \"UNLocationCode\",\n \"facilitySMDGCode\"\n ],\n \"type\": \"object\",\n \"description\": \"An interface used to express a location using a `Facility` by the `SMDG` code list. The `facilitySMDGCode` does not contain the `UNLocationCode` - this should be provided in the `UnLocationCode` attribute.\\n\",\n \"properties\": {\n \"locationName\": {\n \"maxLength\": 100,\n \"type\": \"string\",\n \"description\": \"The name of the location.\"\n },\n \"UNLocationCode\": {\n \"maxLength\": 5,\n \"type\": \"string\",\n \"description\": \"The UN Location code specifying where the place is located.\"\n },\n \"facilitySMDGCode\": {\n \"maxLength\": 6,\n \"type\": \"string\",\n \"description\": \"The code used for identifying the specific facility. This code does <b>not</b> include the UN Location Code.\\n\"\n }\n }\n },\n {\n \"required\": [\n \"address\"\n ],\n \"type\": \"object\",\n \"description\": \"An interface used to express a location using an `Address` object\\n\",\n \"properties\": {\n \"locationName\": {\n \"maxLength\": 100,\n \"type\": \"string\",\n \"description\": \"The name of the location.\"\n },\n \"address\": {\n \"description\": \"Address related information\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"maxLength\": 100,\n \"type\": \"string\",\n \"description\": \"Name of the address\"\n },\n \"street\": {\n \"maxLength\": 100,\n \"type\": \"string\",\n \"description\": \"The name of the street of the party’s address.\"\n },\n \"streetNumber\": {\n \"maxLength\": 50,\n \"type\": \"string\",\n \"description\": \"The number of the street of the party’s address.\"\n },\n \"floor\": {\n \"maxLength\": 50,\n \"type\": \"string\",\n \"description\": \"The floor of the party’s street number.\"\n },\n \"postCode\": {\n \"maxLength\": 50,\n \"type\": \"string\",\n \"description\": \"The post code of the party’s address.\"\n },\n \"city\": {\n \"maxLength\": 65,\n \"type\": \"string\",\n \"description\": \"The city name of the party’s address.\"\n },\n \"stateRegion\": {\n \"maxLength\": 65,\n \"type\": \"string\",\n \"description\": \"The state/region of the party’s address.\"\n },\n \"country\": {\n \"maxLength\": 75,\n \"type\": \"string\",\n \"description\": \"The country of the party’s address.\"\n }\n }\n }\n }\n }\n ]\n },\n \"statusCode\": {\n \"type\": \"string\",\n \"description\": \"The set of codes in `Status Code` are ONLY meant to communicate any change / exception to the published schedule. This is not required in case of normal schedule. Possible values are:\\n\\n- OMIT (Omit)\\n- BLNK (Blank)\\n- ADHO (Ad Hoc)\\n- PHOT (Phase Out)\\n- PHIN (Phase In)\\n- SLID (Sliding)\\n- ROTC (Rotation Change)\\n\\nMore details can be found on [GitHub](https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/portcallstatuscode.csv)\\n\",\n \"enum\": [\n \"OMIN\",\n \"PHIN\",\n \"PHOT\",\n \"ADHO\",\n \"BLNK\",\n \"SLID\",\n \"ROTC\"\n ]\n },\n \"timestamps\": {\n \"type\": \"array\",\n \"items\": {\n \"required\": [\n \"eventClassifierCode\",\n \"eventDateTime\",\n \"eventTypeCode\"\n ],\n \"type\": \"object\",\n \"description\": \"A timestamp for a port\\n\",\n \"properties\": {\n \"eventTypeCode\": {\n \"type\": \"string\",\n \"description\": \"Identifier for type of Transport event\\n- ARRI (Arrived)\\n- DEPA (Departed)\\n\\nMore details can be found on <a href=\\\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/transporteventtypecodes.csv\\\">GitHub</a>\\n\",\n \"enum\": [\n \"ARRI\",\n \"DEPA\"\n ]\n },\n \"eventClassifierCode\": {\n \"type\": \"string\",\n \"description\": \"Code for the event classifier. Values can vary depending on eventType\\n\",\n \"enum\": [\n \"ACT\",\n \"EST\",\n \"PLN\"\n ]\n },\n \"eventDateTime\": {\n \"type\": \"string\",\n \"description\": \"Time in the timstamp\\n\",\n \"format\": \"date-time\"\n },\n \"delayReasonCode\": {\n \"maxLength\": 3,\n \"type\": \"string\",\n \"description\": \"Reason code for the delay. See SMDG [Code list DELAY](https://smdg.org/documents/smdg-code-lists/delay-reason-and-port-call-activity/) for a list of valid codes to be used for this attribute.\\n\"\n },\n \"changeRemark\": {\n \"maxLength\": 250,\n \"type\": \"string\",\n \"description\": \"Free text information provided by the vessel operator regarding the reasons for the change in schedule and/or plans to mitigate schedule slippage.\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n}",
"type": "string"
}
]
}