Skip to content

Commit

Permalink
Extends station schema response to add zone
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuunguyeen committed May 21, 2019
1 parent 28850c0 commit b60c169
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions schemas/tsp/stations-list/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
8 changes: 7 additions & 1 deletion schemas/tsp/stations-retrieve/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit b60c169

Please sign in to comment.