-
Notifications
You must be signed in to change notification settings - Fork 44
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
Route agency_id is optional #31
Comments
I have forked to rorlic/GTFS and fixed it. |
@rorlic Have you submitted your fix as a pull request to this repo? It would be nice to merge into the main repo so that NuGet subscribers can take advantage of the update automatically. I am currently experiencing a similar issue, where a feed omits this field and the GTFS library throws an exception rather than ignoring an optional field. |
@scottharwell The fixes are already merged. The publish failed because the version # was left unchanged. There should now be a new version on nuget. |
GTFS.Entities.Route still has a Required attribute on AgencyId in this main repo as well as the fork. The spec shows that agency_id is optional for Route and also optional for Agency. |
Removed the required attribute. This doesn't change anything, the attributes should be removed altogether in the future. |
Class GTFS.Entities.Route (incorrectly) defines AgencyId as [Required] but the GTFS reference claims it is optional. In addition, the GTFsFeedValidation class checks the existence of the agency_id value in the list of known agencies. Obviously, if AgencyId is null, the check will fail.
The text was updated successfully, but these errors were encountered: