Skip to content

Commit f882cf4

Browse files
Add schemas for v2.0 (#33)
Change booleans from 1/0 to true/false Rotate bike_id
1 parent cbc7c85 commit f882cf4

File tree

3 files changed

+12
-26
lines changed

3 files changed

+12
-26
lines changed

free_bike_status.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
1919
"type": "string",
2020
"enum": [
21-
"1.1-RC",
22-
"1.1"
21+
"2.0"
2322
]
2423
},
2524
"data": {
@@ -30,7 +29,7 @@
3029
"type": "array",
3130
"items": {
3231
"bike_id": {
33-
"description": "Identifier of a vehicle.",
32+
"description": "Rotating (as of v2.0) identifier of a vehicle.",
3433
"type": "string"
3534
},
3635
"lat": {
@@ -47,15 +46,11 @@
4746
},
4847
"is_reserved": {
4948
"description": "Is the vehicle currently reserved?",
50-
"type": "number",
51-
"minimum": 0,
52-
"maximum": 1
49+
"type": "boolean"
5350
},
5451
"is_disabled": {
5552
"description": "Is the vehicle currently disabled (broken)?",
56-
"type": "number",
57-
"minimum": 0,
58-
"maximum": 1
53+
"type": "boolean"
5954
},
6055
"rental_uris": {
6156
"description": "Contains rental uris for Android, iOS, and web in the android, ios, and web fields (added in v1.1).",

station_status.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
1919
"type": "string",
2020
"enum": [
21-
"1.1-RC",
22-
"1.1"
21+
"2.0"
2322
]
2423
},
2524
"data": {
@@ -55,21 +54,15 @@
5554
},
5655
"is_installed": {
5756
"description": "Is the station currently on the street?",
58-
"type": "number",
59-
"minimum": 0,
60-
"maximum": 1
57+
"type": "boolean"
6158
},
6259
"is_renting": {
6360
"description": "Is the station currently renting vehicles?",
64-
"type": "number",
65-
"minimum": 0,
66-
"maximum": 1
61+
"type": "boolean"
6762
},
6863
"is_returning": {
6964
"description": "Is the station accepting vehicle returns?",
70-
"type": "number",
71-
"minimum": 0,
72-
"maximum": 1
65+
"type": "boolean"
7366
},
7467
"last_reported": {
7568
"description": "The last time this station reported its status to the operator's backend.",
@@ -80,7 +73,6 @@
8073
"required": [
8174
"station_id",
8275
"num_bikes_available",
83-
"num_docks_available",
8476
"is_installed",
8577
"is_renting",
8678
"is_returning",

system_pricing_plans.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
1919
"type": "string",
2020
"enum": [
21-
"1.1-RC",
22-
"1.1"
21+
"2.0-RC",
22+
"2.0",
23+
"2.1-RC"
2324
]
2425
},
2526
"data": {
@@ -54,9 +55,7 @@
5455
},
5556
"is_taxable": {
5657
"description": "Will additional tax be added to the base price?",
57-
"type": "number",
58-
"minimum": 0,
59-
"maximum": 1
58+
"type": "boolean"
6059
},
6160
"description": {
6261
"description": "Customer-readable description of the pricing plan.",

0 commit comments

Comments
 (0)