Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vehicle_types.json wrongly required #85

Closed
PierrickP opened this issue Sep 22, 2022 · 3 comments · Fixed by #86
Closed

vehicle_types.json wrongly required #85

PierrickP opened this issue Sep 22, 2022 · 3 comments · Fixed by #86

Comments

@PierrickP
Copy link
Collaborator

PierrickP commented Sep 22, 2022

I suspect that this change broke #41. For v2.2 feeds the vehicle_types.json is thought to be required again, even if the criteria stated in gbfs.md

REQUIRED of systems that include information about vehicle types in the free_bike_status file.

is not given.

Example feed: https://gbfs-validator.netlify.app/?url=https%3A%2F%2Fgbfs.nextbike.net%2Fmaps%2Fgbfs%2Fv2%2Fnextbike_le%2Fgbfs.json
which states

Missing file and required

for the vehicle_types.json.

Should I open a new issue?

Best regards

Originally posted by @nbdh in #63 (comment)

@PierrickP
Copy link
Collaborator Author

This line impact the requirement of the file for the nextbike feed

if (freeBikeStatusHasVehicleId || hasBikesStationId) {

hasBikesStationId is true.

Should we require vehicle_types.json if there are station_id ?

@nbdh
Copy link
Contributor

nbdh commented Sep 22, 2022

Thanks for creating this and for pointing to the corresponding piece of code.

Not sure if I should feel addressed by the question, but according to my understanding, the relation is the other way round:

station_id in free_bike_status is:

REQUIRED only if the vehicle is currently at a station and the vehicle_types.json file has been defined.

(Source)

while station_id being present does not mean the vehicle_type.json becomes required.

--

Side note regarding

if (freeBikeStatusHasVehicleId || hasBikesStationId) {

freeBikeStatusHasVehicleId rather means freeBikeStatusHasVehicleTypeId, right?

@PierrickP
Copy link
Collaborator Author

Yeah, I'm pretty sure the condition is not right

It's a bit complex. The file is required if some fields are defined and in the other way, if the file is defined, it required the fields.

tdelmas added a commit to tdelmas/gbfs-validator that referenced this issue Oct 5, 2022
josee-sabourin added a commit that referenced this issue Oct 5, 2022
Fix vehicle_types.json wrongly required #85
tdelmas added a commit to tdelmas/gbfs-validator that referenced this issue Jun 20, 2023
…d9a6

ef0d9a6 Fix schemas for v3.0-RC (MobilityData#85)

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: ef0d9a6d309b6653e854255554c7057525885cb0
tdelmas added a commit to tdelmas/gbfs-validator that referenced this issue Jun 28, 2023
…058d

22b058d fix: incorrect spec for "languages" property in system_information.json (MobilityData#90)
e9d891b Refer to later versions in gbfs_versions.json (MobilityData#87)
fbd3ced Add v3.0 to v3.0-RC schemas (MobilityData#88)
ef0d9a6 Fix schemas for v3.0-RC (MobilityData#85)
2b6ad1e FIX: replaces name field with localized string (MobilityData#82)
abe71f2 Fix invalid json, no trailing commas (MobilityData#83)
f43170e V3.0-RC Schemas  (MobilityData#79)
680df70 Update pr-to-project.yml
c2c30a2 Typo fix in geofencing_zones.json (MobilityData#78)
c9be765 Create pr-to-project.yml
0a17875 Create issues-to-project.yml
30e5a3a Update README.md

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 22b058dc4a358baf451e006cde74775075929b3d
richfab pushed a commit that referenced this issue Jun 29, 2023
* Git ignore for schemas subtree

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Squashed 'gbfs-validator/versions/schemas/' changes from 5273f96..22b058d

22b058d fix: incorrect spec for "languages" property in system_information.json (#90)
e9d891b Refer to later versions in gbfs_versions.json (#87)
fbd3ced Add v3.0 to v3.0-RC schemas (#88)
ef0d9a6 Fix schemas for v3.0-RC (#85)
2b6ad1e FIX: replaces name field with localized string (#82)
abe71f2 Fix invalid json, no trailing commas (#83)
f43170e V3.0-RC Schemas  (#79)
680df70 Update pr-to-project.yml
c2c30a2 Typo fix in geofencing_zones.json (#78)
c9be765 Create pr-to-project.yml
0a17875 Create issues-to-project.yml
30e5a3a Update README.md

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 22b058dc4a358baf451e006cde74775075929b3d

* remove dot files in schemas

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* v3-RC validation

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Remove unused file

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Add `serverOpts` required in Windows

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Fix typo `recommended`

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* update test for 3.0-RC , 3.0 and upcoming minor versions

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* fix after rebase

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Recommended.

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Squashed 'gbfs-validator/versions/schemas/' changes from 22b058d..5f12243

5f12243 Patch manifest.json (#91)

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 5f12243d5735a608eef697212a627b9090eea31a

---------

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants