Closed aswinthomas closed 1 year ago
Hello @aswinthomas
For the second point, check your node version. For optionnal chaining (the ?.
, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) you need at least, node 14 (LTS is 16.x)
Yes validate offline feed can be a good functunality :+1:
UPDATE: I had to change the workaround to python3 -m http.server 8000
for it to work. I was then able to use the CLI on a local GBFS feed: node cli -u http://localhost:8000/<Local path to the GBFS feed>
Moving the discussion to https://github.com/MobilityData/gbfs-validator/issues/70. Thank you!
Would it be possible to use the cli for validating gbfs files that are not hosted anywhere? For example:
The workaround I use now is using a local server
python3 -m SimpleHTTPServer 8000
Also the example referenced in Issue #53 does not seem to work anymore (commit 35a22994fbc4f7435a7b8cc146619fbc8e2de114)