From 83bbeb9849a10fe2ec87d240f9ae62c3d6550ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20Dahl=C3=A9n?= Date: Tue, 21 Feb 2017 09:10:34 +0200 Subject: [PATCH 1/4] Add MODE_TRAIN schema --- schemas/core/booking.json | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/schemas/core/booking.json b/schemas/core/booking.json index f03064049..882be0745 100644 --- a/schemas/core/booking.json +++ b/schemas/core/booking.json @@ -192,7 +192,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" From 1047147f66db0f8a2a399b8a020787875a057c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20Dahl=C3=A9n?= Date: Mon, 27 Feb 2017 13:24:38 +0200 Subject: [PATCH 2/4] Build --- prebuilt/core/booking.json | 90 ++++++++++++++++++- .../bookings/bookings-cancel/response.json | 90 ++++++++++++++++++- .../bookings/bookings-create/response.json | 90 ++++++++++++++++++- .../bookings/bookings-list/response.json | 90 ++++++++++++++++++- .../bookings/bookings-retrieve/response.json | 90 ++++++++++++++++++- .../bookings/bookings-update/response.json | 90 ++++++++++++++++++- .../webhooks-bookings-update/request.json | 30 ++++++- .../webhooks-bookings-update/response.json | 60 ++++++++++++- prebuilt/tsp/booking-cancel/response.json | 30 ++++++- prebuilt/tsp/booking-create/request.json | 30 ++++++- prebuilt/tsp/booking-create/response.json | 30 ++++++- prebuilt/tsp/booking-option.json | 30 ++++++- .../tsp/booking-options-list/response.json | 30 ++++++- prebuilt/tsp/booking-read-by-id/response.json | 30 ++++++- .../remote-request.json | 30 ++++++- .../remote-response.json | 60 ++++++++++++- 16 files changed, 870 insertions(+), 30 deletions(-) diff --git a/prebuilt/core/booking.json b/prebuilt/core/booking.json index c34576a6d..82f04a328 100644 --- a/prebuilt/core/booking.json +++ b/prebuilt/core/booking.json @@ -429,7 +429,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1050,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1624,35 @@ "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 }, "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..81e0460bb 100644 --- a/prebuilt/maas-backend/bookings/bookings-cancel/response.json +++ b/prebuilt/maas-backend/bookings/bookings-cancel/response.json @@ -429,7 +429,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1050,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1624,35 @@ "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 }, "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..839a18740 100644 --- a/prebuilt/maas-backend/bookings/bookings-create/response.json +++ b/prebuilt/maas-backend/bookings/bookings-create/response.json @@ -429,7 +429,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1050,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1624,35 @@ "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 }, "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..322e82619 100644 --- a/prebuilt/maas-backend/bookings/bookings-list/response.json +++ b/prebuilt/maas-backend/bookings/bookings-list/response.json @@ -438,7 +438,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1031,7 +1059,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1577,7 +1633,35 @@ "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 }, "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..189295221 100644 --- a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json +++ b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json @@ -429,7 +429,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1022,7 +1050,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1568,7 +1624,35 @@ "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 }, "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..1276e218a 100644 --- a/prebuilt/maas-backend/bookings/bookings-update/response.json +++ b/prebuilt/maas-backend/bookings/bookings-update/response.json @@ -435,7 +435,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1028,7 +1056,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -1574,7 +1630,35 @@ "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 }, "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..12c9d880e 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json @@ -298,7 +298,35 @@ "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 }, "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..6c39e1fa4 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json @@ -297,7 +297,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -747,7 +775,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-cancel/response.json b/prebuilt/tsp/booking-cancel/response.json index 667ca4489..d7a47cb4c 100644 --- a/prebuilt/tsp/booking-cancel/response.json +++ b/prebuilt/tsp/booking-cancel/response.json @@ -290,7 +290,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-create/request.json b/prebuilt/tsp/booking-create/request.json index d6ff611d4..ee685b138 100644 --- a/prebuilt/tsp/booking-create/request.json +++ b/prebuilt/tsp/booking-create/request.json @@ -281,7 +281,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-create/response.json b/prebuilt/tsp/booking-create/response.json index 630e538af..67bde0b60 100644 --- a/prebuilt/tsp/booking-create/response.json +++ b/prebuilt/tsp/booking-create/response.json @@ -292,7 +292,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-option.json b/prebuilt/tsp/booking-option.json index 83bf90c1b..60c76a4fa 100644 --- a/prebuilt/tsp/booking-option.json +++ b/prebuilt/tsp/booking-option.json @@ -313,7 +313,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-options-list/response.json b/prebuilt/tsp/booking-options-list/response.json index 1bc3cf25d..ac95b0198 100644 --- a/prebuilt/tsp/booking-options-list/response.json +++ b/prebuilt/tsp/booking-options-list/response.json @@ -321,7 +321,35 @@ "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 }, "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..b32e76a29 100644 --- a/prebuilt/tsp/booking-read-by-id/response.json +++ b/prebuilt/tsp/booking-read-by-id/response.json @@ -286,7 +286,35 @@ "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 }, "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..24fddf95c 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-request.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-request.json @@ -287,7 +287,35 @@ "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 }, "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..b956c6dd2 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-response.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-response.json @@ -297,7 +297,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" @@ -747,7 +775,35 @@ "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 }, "MODE_TRAINISH": { "type": "object" From 5f1684e0a6a208c66e1360313a2d4e77d811167a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20Dahl=C3=A9n?= Date: Mon, 27 Feb 2017 13:48:00 +0200 Subject: [PATCH 3/4] Make MODE_TRAIN.trainId a required field --- schemas/core/booking.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schemas/core/booking.json b/schemas/core/booking.json index 882be0745..67615edbe 100644 --- a/schemas/core/booking.json +++ b/schemas/core/booking.json @@ -220,7 +220,8 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": ["trainId"] }, "MODE_TRAINISH": { "type": "object" From 8fa86d9d890a78bee4292036370a22bc69081f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20Dahl=C3=A9n?= Date: Mon, 27 Feb 2017 13:48:21 +0200 Subject: [PATCH 4/4] Build --- prebuilt/core/booking.json | 15 ++++++++++++--- .../bookings/bookings-cancel/response.json | 15 ++++++++++++--- .../bookings/bookings-create/response.json | 15 ++++++++++++--- .../bookings/bookings-list/response.json | 15 ++++++++++++--- .../bookings/bookings-retrieve/response.json | 15 ++++++++++++--- .../bookings/bookings-update/response.json | 15 ++++++++++++--- .../webhooks-bookings-update/request.json | 5 ++++- .../webhooks-bookings-update/response.json | 10 ++++++++-- prebuilt/tsp/booking-cancel/response.json | 5 ++++- prebuilt/tsp/booking-create/request.json | 5 ++++- prebuilt/tsp/booking-create/response.json | 5 ++++- prebuilt/tsp/booking-option.json | 5 ++++- prebuilt/tsp/booking-options-list/response.json | 5 ++++- prebuilt/tsp/booking-read-by-id/response.json | 5 ++++- .../webhooks-bookings-update/remote-request.json | 5 ++++- .../webhooks-bookings-update/remote-response.json | 10 ++++++++-- 16 files changed, 120 insertions(+), 30 deletions(-) diff --git a/prebuilt/core/booking.json b/prebuilt/core/booking.json index 82f04a328..dacdf2b28 100644 --- a/prebuilt/core/booking.json +++ b/prebuilt/core/booking.json @@ -457,7 +457,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1078,7 +1081,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1652,7 +1658,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 81e0460bb..db4ba3efc 100644 --- a/prebuilt/maas-backend/bookings/bookings-cancel/response.json +++ b/prebuilt/maas-backend/bookings/bookings-cancel/response.json @@ -457,7 +457,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1078,7 +1081,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1652,7 +1658,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 839a18740..ec2f015dc 100644 --- a/prebuilt/maas-backend/bookings/bookings-create/response.json +++ b/prebuilt/maas-backend/bookings/bookings-create/response.json @@ -457,7 +457,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1078,7 +1081,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1652,7 +1658,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 322e82619..9f4c81f5b 100644 --- a/prebuilt/maas-backend/bookings/bookings-list/response.json +++ b/prebuilt/maas-backend/bookings/bookings-list/response.json @@ -466,7 +466,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1087,7 +1090,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1661,7 +1667,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 189295221..c9f87e44f 100644 --- a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json +++ b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json @@ -457,7 +457,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1078,7 +1081,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1652,7 +1658,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 1276e218a..7ed2c7a7e 100644 --- a/prebuilt/maas-backend/bookings/bookings-update/response.json +++ b/prebuilt/maas-backend/bookings/bookings-update/response.json @@ -463,7 +463,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1084,7 +1087,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -1658,7 +1664,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 12c9d880e..716d53e68 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json @@ -326,7 +326,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 6c39e1fa4..240bceeb7 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json @@ -325,7 +325,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -803,7 +806,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 d7a47cb4c..175384201 100644 --- a/prebuilt/tsp/booking-cancel/response.json +++ b/prebuilt/tsp/booking-cancel/response.json @@ -318,7 +318,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 ee685b138..8a3090b93 100644 --- a/prebuilt/tsp/booking-create/request.json +++ b/prebuilt/tsp/booking-create/request.json @@ -309,7 +309,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 67bde0b60..aa3ef4b7b 100644 --- a/prebuilt/tsp/booking-create/response.json +++ b/prebuilt/tsp/booking-create/response.json @@ -320,7 +320,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" diff --git a/prebuilt/tsp/booking-option.json b/prebuilt/tsp/booking-option.json index 60c76a4fa..c0a2fcb15 100644 --- a/prebuilt/tsp/booking-option.json +++ b/prebuilt/tsp/booking-option.json @@ -341,7 +341,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 ac95b0198..f88644cd1 100644 --- a/prebuilt/tsp/booking-options-list/response.json +++ b/prebuilt/tsp/booking-options-list/response.json @@ -349,7 +349,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 b32e76a29..5bda01145 100644 --- a/prebuilt/tsp/booking-read-by-id/response.json +++ b/prebuilt/tsp/booking-read-by-id/response.json @@ -314,7 +314,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 24fddf95c..5561e016a 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-request.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-request.json @@ -315,7 +315,10 @@ "minLength": 1 } }, - "additionalProperties": false + "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 b956c6dd2..cff99d0b4 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-response.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-response.json @@ -325,7 +325,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object" @@ -803,7 +806,10 @@ "minLength": 1 } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "trainId" + ] }, "MODE_TRAINISH": { "type": "object"