Skip to content

Commit

Permalink
feat: updated severity and fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cka-y committed Aug 8, 2023
1 parent bae0af9 commit 0f51e13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.mobilitydata.gtfsvalidator.validator;

import static org.mobilitydata.gtfsvalidator.notice.SeverityLevel.WARNING;
import static org.mobilitydata.gtfsvalidator.notice.SeverityLevel.ERROR;

import java.util.List;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -89,7 +89,7 @@ public void validate(NoticeContainer noticeContainer) {

/** The distance traveled by a trip should be less or equal to the max length of its shape. */
@GtfsValidationNotice(
severity = WARNING,
severity = ERROR,
files = @FileRefs({GtfsTrip.class, GtfsStopTime.class, GtfsShape.class}))
static class TripDistanceExceedsShapeDistanceNotice extends ValidationNotice {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ public void testNoticeClassFieldNames() {
"tripIdB",
"tripIdFieldName",
"validator",
"value");
"value",
"maxShapeDistanceTraveled",
"maxTripDistanceTraveled");
}

private static List<String> discoverValidationNoticeFieldNames() {
Expand Down

0 comments on commit 0f51e13

Please sign in to comment.