diff --git a/README.md b/README.md index 74859ece..c7f829f5 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Parameter file names are prefixed with the corresponding parameter type. A path specification/parameters/path-carrier_id.json ``` -Unique parameters can just remain in the path file and do not need to be extracted to their own files. +Unique parameters can just remain in the path file and do not need to be extracted to their own files. ## License All software by MyParcel.com is licensed under the [MyParcel.com general terms and conditions](https://solutions.myparcel.com/legal). diff --git a/specification/paths/MultiColliShipments.json b/specification/paths/MultiColliShipments.json index 0e290696..8b3c32cd 100644 --- a/specification/paths/MultiColliShipments.json +++ b/specification/paths/MultiColliShipments.json @@ -78,7 +78,16 @@ "required": [ "code", "address" - ] + ], + "properties": { + "address": { + "required": [ + "street_1", + "city", + "country_code" + ] + } + } }, "tracking_code": { "readOnly": true diff --git a/specification/paths/RegisteredShipments.json b/specification/paths/RegisteredShipments.json index 31a231cd..b9ec63cc 100644 --- a/specification/paths/RegisteredShipments.json +++ b/specification/paths/RegisteredShipments.json @@ -78,13 +78,31 @@ "required": [ "code", "address" - ] + ], + "properties": { + "address": { + "required": [ + "street_1", + "city", + "country_code" + ] + } + } }, "drop_off_location": { "required": [ "code", "address" - ] + ], + "properties": { + "address": { + "required": [ + "street_1", + "city", + "country_code" + ] + } + } }, "tracking_code": { "readOnly": true diff --git a/specification/paths/Shipments.json b/specification/paths/Shipments.json index ea2adba5..0b419b06 100644 --- a/specification/paths/Shipments.json +++ b/specification/paths/Shipments.json @@ -235,13 +235,31 @@ "required": [ "code", "address" - ] + ], + "properties": { + "address": { + "required": [ + "street_1", + "city", + "country_code" + ] + } + } }, "drop_off_location": { "required": [ "code", "address" - ] + ], + "properties": { + "address": { + "required": [ + "street_1", + "city", + "country_code" + ] + } + } }, "tracking_code": { "readOnly": true diff --git a/specification/schemas/shipments/ShipmentResponse.json b/specification/schemas/shipments/ShipmentResponse.json index 7db2de99..2d8307ad 100644 --- a/specification/schemas/shipments/ShipmentResponse.json +++ b/specification/schemas/shipments/ShipmentResponse.json @@ -49,13 +49,31 @@ "required": [ "code", "address" - ] + ], + "properties": { + "address": { + "required": [ + "street_1", + "city", + "country_code" + ] + } + } }, "drop_off_location": { "required": [ "code", "address" - ] + ], + "properties": { + "address": { + "required": [ + "street_1", + "city", + "country_code" + ] + } + } }, "physical_properties": { "required": [