-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add rules for the Fares v2 base implementation #1201
Comments
So a couple things now that I've had a chance to run #1228 against the feeds in the validator acceptance check.
So that brings up the questions of next steps. I wasn't involved with first round of Fare V2 adoption. Before opening it up to the entire community, I'd be interested in having a quick discussion with some key stakeholders to talk through these issues. @isabelle-dr thoughts? |
Hello Brian, I also had a quick look at the acceptance test report generated by your PR (the one attached here, which I hope is accurate because I see the GH action wasn't completed).
That's exactly it, the initial implementation didn't require
Do you mean most currency amounts do not have the number of decimal places required? We have allocated the severity ERROR for validation of every field type so yes, an invalid currency should be an error.
My quick answer to this is that we should first only add rules according to what was adopted, which we believe will help agencies update their data to match the latest version of it. |
Regarding currency amounts, that's correct: they do not have the number of decimal places required. Regarding backwards compatibility, I think this is a little subtle. Per the Guiding Principles, backwards compatibility is first and foremost about preserving backwards compatibility for feed producers. In that sense, adding new optional fields to What we do about validation is an open question. I'd like to learn more about the plan for the incremental adoption and extension of Fares V2 (if there is a plan?). @omar-kabbani maybe that's something I can chat with you about? |
Hi @bdferris-v2, thanks for bringing this up! MobilityData has published a plan for the next steps for GTFS-Fares v2 which includes adding 5 features to the specification. These features require adding optional files and fields that do not affect the way fares are modelled. We do not want to introduce any breaking changes that will break compatibility with previous GTFS datasets. With regards to feeds not passing validation, I understand that some data producers are still using As for the additional (experimental) fields, I did not think they would trigger errors or warnings, the validator should simply ignore them. The only case I can think of where the validator raises warnings is if the Primary Keys have changed with the addition of fields. Also, we are happy to discuss things in more detail! |
This has been completed, the validator has been updated to reflect changes to the Fares v2 base implementation. We have decided not to include the changes done on |
After the PR # 286 was merged in May 2022.
Materials
Google Doc to keep track of the Validator implementation
Additional files:
Changes to existing files
network_id
fieldNew requirement concept
Conditionally forbidden: The field or file must not be included under conditions outlined in the field or file description.
New field type
Currency amount: A decimal value indicating a currency amount. The number of decimal places is specified by ISO 4217 for the accompanying Currency code. All financial calculations should be processed as decimal, currency, or another equivalent type suitable for financial calculations depending on the programming language used to consume data. Processing currency amounts as float is discouraged due to gains or losses of money during calculations.
The text was updated successfully, but these errors were encountered: