Skip to content

Commit

Permalink
overrode shouldCallValidate
Browse files Browse the repository at this point in the history
  • Loading branch information
qcdyx committed Jan 9, 2025
1 parent 93066f0 commit d9f8cf8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public void validate(GtfsStopTime entity, NoticeContainer noticeContainer) {
}
}

@Override
public boolean shouldCallValidate(ColumnInspector header) {
return header.hasColumn(GtfsStopTime.PICKUP_TYPE_FIELD_NAME)
&& header.hasColumn(GtfsStopTime.DROP_OFF_TYPE_FIELD_NAME);
}

/**
* pickup_drop_off_window fields are forbidden when the pickup_type is regularly scheduled (0) or
* must be coordinated with the driver (3).
Expand Down

0 comments on commit d9f8cf8

Please sign in to comment.