Skip to content

Commit

Permalink
Add maximum value of 1 for current_fuel_percent (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
richfab authored Oct 10, 2024
1 parent 6c1e66c commit 9c6e202
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion v2.3/free_bike_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"current_fuel_percent": {
"description": "This value represents the current percentage, expressed from 0 to 1, of fuel or battery power remaining in the vehicle. Added in v2.3-RC.",
"type": "number",
"minimum": 0
"minimum": 0,
"maximum": 1
},
"station_id": {
"description": "Identifier referencing the station_id if the vehicle is currently at a station (added in v2.1-RC2).",
Expand Down
3 changes: 2 additions & 1 deletion v3.0/vehicle_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"current_fuel_percent": {
"description": "This value represents the current percentage, expressed from 0 to 1, of fuel or battery power remaining in the vehicle. Added in v2.3-RC.",
"type": "number",
"minimum": 0
"minimum": 0,
"maximum": 1
},
"station_id": {
"description": "Identifier referencing the station_id if the vehicle is currently at a station (added in v2.1-RC2).",
Expand Down
3 changes: 2 additions & 1 deletion v3.1-RC/vehicle_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"current_fuel_percent": {
"description": "This value represents the current percentage, expressed from 0 to 1, of fuel or battery power remaining in the vehicle. Added in v2.3-RC.",
"type": "number",
"minimum": 0
"minimum": 0,
"maximum": 1
},
"station_id": {
"description": "Identifier referencing the station_id if the vehicle is currently at a station (added in v2.1-RC2).",
Expand Down

0 comments on commit 9c6e202

Please sign in to comment.