Skip to content

Commit

Permalink
Add schemas for v2.0 (#33)
Browse files Browse the repository at this point in the history
Change booleans from 1/0 to true/false
Rotate bike_id
  • Loading branch information
josee-sabourin authored Oct 27, 2020
1 parent cbc7c85 commit f882cf4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
13 changes: 4 additions & 9 deletions free_bike_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"enum": [
"1.1-RC",
"1.1"
"2.0"
]
},
"data": {
Expand All @@ -30,7 +29,7 @@
"type": "array",
"items": {
"bike_id": {
"description": "Identifier of a vehicle.",
"description": "Rotating (as of v2.0) identifier of a vehicle.",
"type": "string"
},
"lat": {
Expand All @@ -47,15 +46,11 @@
},
"is_reserved": {
"description": "Is the vehicle currently reserved?",
"type": "number",
"minimum": 0,
"maximum": 1
"type": "boolean"
},
"is_disabled": {
"description": "Is the vehicle currently disabled (broken)?",
"type": "number",
"minimum": 0,
"maximum": 1
"type": "boolean"
},
"rental_uris": {
"description": "Contains rental uris for Android, iOS, and web in the android, ios, and web fields (added in v1.1).",
Expand Down
16 changes: 4 additions & 12 deletions station_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"enum": [
"1.1-RC",
"1.1"
"2.0"
]
},
"data": {
Expand Down Expand Up @@ -55,21 +54,15 @@
},
"is_installed": {
"description": "Is the station currently on the street?",
"type": "number",
"minimum": 0,
"maximum": 1
"type": "boolean"
},
"is_renting": {
"description": "Is the station currently renting vehicles?",
"type": "number",
"minimum": 0,
"maximum": 1
"type": "boolean"
},
"is_returning": {
"description": "Is the station accepting vehicle returns?",
"type": "number",
"minimum": 0,
"maximum": 1
"type": "boolean"
},
"last_reported": {
"description": "The last time this station reported its status to the operator's backend.",
Expand All @@ -80,7 +73,6 @@
"required": [
"station_id",
"num_bikes_available",
"num_docks_available",
"is_installed",
"is_renting",
"is_returning",
Expand Down
9 changes: 4 additions & 5 deletions system_pricing_plans.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"enum": [
"1.1-RC",
"1.1"
"2.0-RC",
"2.0",
"2.1-RC"
]
},
"data": {
Expand Down Expand Up @@ -54,9 +55,7 @@
},
"is_taxable": {
"description": "Will additional tax be added to the base price?",
"type": "number",
"minimum": 0,
"maximum": 1
"type": "boolean"
},
"description": {
"description": "Customer-readable description of the pricing plan.",
Expand Down

0 comments on commit f882cf4

Please sign in to comment.