Skip to content

Commit

Permalink
Merge pull request #388 from hieuunguyeen/stations-schema-add-zone
Browse files Browse the repository at this point in the history
Stations schema add zone
  • Loading branch information
hieuunguyeen authored May 21, 2019
2 parents fcf17d6 + 9a110af commit 189062b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maas-schemas",
"version": "7.8.0",
"version": "7.9.0",
"description": "Schemas for MaaS infrastructure",
"main": "index.js",
"engine": {
Expand Down
11 changes: 11 additions & 0 deletions schemas/core/components/station.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@
}
}
}
},
"zone": {
"description": "Geofencing zone defined by provider that the station is within",
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
}
}
}
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
6 changes: 6 additions & 0 deletions schemas/tsp/stations-retrieve/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
},
"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"],
Expand Down

0 comments on commit 189062b

Please sign in to comment.