Changeset 17434 in josm for trunk


Ignore:
Timestamp:
2021-01-03T23:17:33+01:00 (8 weeks ago)
Author:
Don-vip
Message:

fix #20337 - support dog:conditional

Location:
trunk
Files:
2 edited

Legend:

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

    r16643 r17434  
    2929    private static final Set<String> RESTRICTION_TYPES = new HashSet<>(Arrays.asList("oneway", "toll", "noexit", "maxspeed", "minspeed",
    3030            "maxstay", "maxweight", "maxaxleload", "maxheight", "maxwidth", "maxlength", "overtaking", "maxgcweight", "maxgcweightrating",
    31             "fee", "restriction", "interval", "duration"));
     31            "fee", "restriction", "interval", "duration", "dog"));
    3232    private static final Set<String> RESTRICTION_VALUES = new HashSet<>(Arrays.asList("yes", "official", "designated", "destination",
    3333            "delivery", "customers", "permissive", "private", "agricultural", "forestry", "no"));
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/ConditionalKeysTest.java

    r17275 r17434  
    4040    @Test
    4141    void testKeyValid() {
     42        assertTrue(test.isKeyValid("dog:conditional"));
    4243        assertTrue(test.isKeyValid("maxspeed:conditional"));
    4344        assertTrue(test.isKeyValid("motor_vehicle:conditional"));
Note: See TracChangeset for help on using the changeset viewer.