From 76fdced3ec1d2fd1217f6e32c4e50ff4a4889392 Mon Sep 17 00:00:00 2001 From: Toni Ala-Piirto Date: Thu, 12 Oct 2017 10:52:37 +0300 Subject: [PATCH] Blacklist TAXI mode for direct agency-options call, TAXI mode must be obtained through routes query. --- .../bookings/bookings-agency-options/request.json | 14 ++++++++++++++ .../bookings/bookings-agency-options/request.json | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/prebuilt/maas-backend/bookings/bookings-agency-options/request.json b/prebuilt/maas-backend/bookings/bookings-agency-options/request.json index 90ff204ac..2d843c6a2 100644 --- a/prebuilt/maas-backend/bookings/bookings-agency-options/request.json +++ b/prebuilt/maas-backend/bookings/bookings-agency-options/request.json @@ -21,6 +21,13 @@ ], "properties": { "mode": { + "not": { + "description": "Blacklisted modes for direct agency options call", + "type": "string", + "enum": [ + "TAXI" + ] + }, "anyOf": [ { "description": "A mode that only involves waiting in the current location", @@ -163,6 +170,13 @@ ], "properties": { "mode": { + "not": { + "description": "Blacklisted modes for direct agency options call", + "type": "string", + "enum": [ + "TAXI" + ] + }, "anyOf": [ { "description": "A mode that only involves waiting in the current location", diff --git a/schemas/maas-backend/bookings/bookings-agency-options/request.json b/schemas/maas-backend/bookings/bookings-agency-options/request.json index 74820b0f4..08f17e552 100644 --- a/schemas/maas-backend/bookings/bookings-agency-options/request.json +++ b/schemas/maas-backend/bookings/bookings-agency-options/request.json @@ -28,7 +28,12 @@ ], "properties": { "mode": { - "$ref": "../../../core/mode.json#/definitions/mode" + "$ref": "../../../core/mode.json#/definitions/mode", + "not": { + "description": "These modes are not allowed for direct agency options call", + "type": "string", + "enum": ["TAXI"] + } }, "startTime": { "$ref": "../../../core/units.json#/definitions/time"