-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
GBFS spec defines current_fuel_percent
as current percentage, expressed from 0 to 1.
However, the json schema only declares a minimum
of 0
, but not a maximum
of 1
.
In consequence, feed providers don't receive appropriate feedback, in case they report current_fuel_percent
in the range from 0
to 100
, as it is currently the case for e.g. this feed: the gbfs-validator reports free_bike_status.json
as valid.
gbfs-json-schema/v3.1-RC/vehicle_status.json
Lines 96 to 100 in 6c1e66c
"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 | |
}, |
As this new validation is only a change in the existing schemas, but not in the spec itself, I suggest to add it to the schemas of older versions as well.
tdelmasrichfab
Metadata
Metadata
Assignees
Labels
No labels