Skip to content

Update conditional requirements checks#317

Merged
br648 merged 3 commits intogtfs-spec-updatesfrom
gtfs-spec-updates-ltr-2
May 10, 2021
Merged

Update conditional requirements checks#317
br648 merged 3 commits intogtfs-spec-updatesfrom
gtfs-spec-updates-ltr-2

Conversation

@landonreed
Copy link
Copy Markdown
Contributor

@landonreed landonreed commented May 7, 2021

Contains tweaks for #312. Namely:

  • adds LineContext class to encapsulate some shared logic/clean things up
  • renames some conditions/methods to be more concise/accurate (notably: conditionalField to dependentField)
  • adds a new check method for checkFieldEmpty. I think the reference/dependent checks were mixed up, so as part of that I also reordered those (for routes#agency_id and fare_rules#agency_id)
  • maybe a couple of other things... sorry if this went overboard!

FYI, some tests are broken. Happy to help resolve if help is needed!

@landonreed landonreed requested a review from br648 May 7, 2021 16:18
@landonreed landonreed assigned landonreed and br648 and unassigned landonreed May 7, 2021
@landonreed landonreed mentioned this pull request May 7, 2021
5 tasks
@br648 br648 merged commit db4abe8 into gtfs-spec-updates May 10, 2021
@br648 br648 deleted the gtfs-spec-updates-ltr-2 branch May 10, 2021 09:41
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 this pull request may close these issues.

2 participants