diff --git a/prebuilt/core/booking.json b/prebuilt/core/booking.json index c34576a6d..dacdf2b28 100644 --- a/prebuilt/core/booking.json +++ b/prebuilt/core/booking.json @@ -429,7 +429,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1053,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1630,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/maas-backend/bookings/bookings-cancel/response.json b/prebuilt/maas-backend/bookings/bookings-cancel/response.json index 9f4e43dc4..db4ba3efc 100644 --- a/prebuilt/maas-backend/bookings/bookings-cancel/response.json +++ b/prebuilt/maas-backend/bookings/bookings-cancel/response.json @@ -429,7 +429,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1053,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1630,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/maas-backend/bookings/bookings-create/response.json b/prebuilt/maas-backend/bookings/bookings-create/response.json index cdcf0335d..ec2f015dc 100644 --- a/prebuilt/maas-backend/bookings/bookings-create/response.json +++ b/prebuilt/maas-backend/bookings/bookings-create/response.json @@ -429,7 +429,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1053,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1630,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/maas-backend/bookings/bookings-list/response.json b/prebuilt/maas-backend/bookings/bookings-list/response.json index fc93f8663..9f4c81f5b 100644 --- a/prebuilt/maas-backend/bookings/bookings-list/response.json +++ b/prebuilt/maas-backend/bookings/bookings-list/response.json @@ -438,7 +438,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1031,7 +1062,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1577,7 +1639,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json index c58a2e585..c9f87e44f 100644 --- a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json +++ b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json @@ -429,7 +429,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1053,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1630,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/maas-backend/bookings/bookings-update/response.json b/prebuilt/maas-backend/bookings/bookings-update/response.json index 3815708e8..7ed2c7a7e 100644 --- a/prebuilt/maas-backend/bookings/bookings-update/response.json +++ b/prebuilt/maas-backend/bookings/bookings-update/response.json @@ -435,7 +435,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1028,7 +1059,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1574,7 +1636,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json index 50934ec50..716d53e68 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json @@ -298,7 +298,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json index e89df7088..240bceeb7 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json @@ -297,7 +297,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -747,7 +778,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-cancel/response.json b/prebuilt/tsp/booking-cancel/response.json index 667ca4489..175384201 100644 --- a/prebuilt/tsp/booking-cancel/response.json +++ b/prebuilt/tsp/booking-cancel/response.json @@ -290,7 +290,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-create/request.json b/prebuilt/tsp/booking-create/request.json index d6ff611d4..8a3090b93 100644 --- a/prebuilt/tsp/booking-create/request.json +++ b/prebuilt/tsp/booking-create/request.json @@ -281,7 +281,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-create/response.json b/prebuilt/tsp/booking-create/response.json index 630e538af..aa3ef4b7b 100644 --- a/prebuilt/tsp/booking-create/response.json +++ b/prebuilt/tsp/booking-create/response.json @@ -292,7 +292,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-option.json b/prebuilt/tsp/booking-option.json index 83bf90c1b..c0a2fcb15 100644 --- a/prebuilt/tsp/booking-option.json +++ b/prebuilt/tsp/booking-option.json @@ -313,7 +313,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-options-list/response.json b/prebuilt/tsp/booking-options-list/response.json index 1bc3cf25d..f88644cd1 100644 --- a/prebuilt/tsp/booking-options-list/response.json +++ b/prebuilt/tsp/booking-options-list/response.json @@ -321,7 +321,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-read-by-id/response.json b/prebuilt/tsp/booking-read-by-id/response.json index 82c575ca1..5bda01145 100644 --- a/prebuilt/tsp/booking-read-by-id/response.json +++ b/prebuilt/tsp/booking-read-by-id/response.json @@ -286,7 +286,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/webhooks-bookings-update/remote-request.json b/prebuilt/tsp/webhooks-bookings-update/remote-request.json index 83554e666..5561e016a 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-request.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-request.json @@ -287,7 +287,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/webhooks-bookings-update/remote-response.json b/prebuilt/tsp/webhooks-bookings-update/remote-response.json index f619dca4e..cff99d0b4 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-response.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-response.json @@ -297,7 +297,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -747,7 +778,38 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/schemas/core/booking.json b/schemas/core/booking.json index f03064049..67615edbe 100644 --- a/schemas/core/booking.json +++ b/schemas/core/booking.json @@ -192,7 +192,36 @@ "type": "object" }, "MODE_TRAIN": { - "type": "object" + "type": "object", + "properties": { + "trainId": { + "description": "The train id / designator", + "type": "string", + "minLength": 1 + }, + "trainType": { + "description": "The train type, e.g. Inter-City", + "type": "string", + "minLength": 1 + }, + "coach": { + "description": "The coach, e.g. B", + "type": "string", + "minLength": 1 + }, + "seatNumber": { + "description": "Seat number, e.g. 42", + "type": "string", + "minLength": 1 + }, + "carrierName": { + "description": "Carrier name, e.g. LonUnderground", + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false, + "required": ["trainId"] }, "MODE_TRAINISH": { "type": "object"