etalab / transport-validator

GTFS validator
https://transport.data.gouv.fr/validation/
MIT License
38 stars 10 forks source link

Allow user to use custom values on some validations tests #142

Closed fchabouis closed 2 years ago

fchabouis commented 2 years ago

Add the possibility to provide a path to a YAML file containing custom values for some tests. This is a first step: allow to customize speeds for Excessive speed tests. This feature was requested by the ART who would like to run some tests with customized speed values.

usage : cargo run -- --input gtfs.zip --custom-rules custom_rules.yml

PS : I have done this PR following my instinct, do not hesitate to let me know if an other way was preferable!

fchabouis commented 2 years ago

Thanks @thbar, I integrated your suggestions.