From b60c1694ac21728d5e949a841cb3b8387d43534c Mon Sep 17 00:00:00 2001 From: Hieu Nguyen Date: Tue, 21 May 2019 14:21:39 +0300 Subject: [PATCH] Extends station schema response to add zone --- schemas/tsp/stations-list/response.json | 3 +++ schemas/tsp/stations-retrieve/response.json | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/schemas/tsp/stations-list/response.json b/schemas/tsp/stations-list/response.json index 6591ec5be..ba7ff7de4 100644 --- a/schemas/tsp/stations-list/response.json +++ b/schemas/tsp/stations-list/response.json @@ -35,6 +35,9 @@ }, "country": { "$ref": "http://maasglobal.com/core/components/station.json#/definitions/country" + }, + "zone": { + "$ref": "http://maasglobal.com/core/components/station.json#/definitions/zone" } }, "required": ["id", "location", "agencyId", "services"], diff --git a/schemas/tsp/stations-retrieve/response.json b/schemas/tsp/stations-retrieve/response.json index 03a2b3c79..ef5e883d4 100644 --- a/schemas/tsp/stations-retrieve/response.json +++ b/schemas/tsp/stations-retrieve/response.json @@ -39,9 +39,15 @@ }, "timetables": { "$ref": "http://maasglobal.com/core/components/station.json#/definitions/timetables" + }, + "zone": { + "$ref": "http://maasglobal.com/core/components/station.json#/definitions/zone" + }, + "services": { + "$ref": "http://maasglobal.com/core/components/station.json#/definitions/services" } }, - "required": ["id", "location", "agencyId"], + "required": ["id", "location", "agencyId", "services"], "additionalProperties": false } }