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"