Changeset 13404 in josm


Ignore:
Timestamp:
2018-02-10T18:06:26+01:00 (10 days ago)
Author:
Klumbumbus
Message:

fix #15760 - raise roles forward/backward in PTv2 route relations to error level and add the role alternate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/PublicTransportRouteTest.java

    r11129 r13404  
    4646        final Set<Node> routeNodes = new HashSet<>();
    4747        for (RelationMember member : r.getMembers()) {
    48             if (member.hasRole("forward", "backward")) {
    49                 errors.add(TestError.builder(this, Severity.WARNING, 3601)
    50                         .message(tr("Route relation contains a ''{0}'' role", "forward/backward"))
     48            if (member.hasRole("forward", "backward", "alternate")) {
     49                errors.add(TestError.builder(this, Severity.ERROR, 3601)
     50                        .message(tr("Route relation contains a ''{0}'' role", "forward/backward/alternate"))
    5151                        .primitives(r)
    5252                        .build());
Note: See TracChangeset for help on using the changeset viewer.