Changeset 19445 in josm


Ignore:
Timestamp:
2025-11-07T15:07:19+01:00 (8 weeks ago)
Author:
GerdP
Message:

fix #24531: Conditional: "permit" should be a valid restriction value

  • add permit to the list of allowed values
Location:
trunk
Files:
2 edited

Legend:

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

    r18560 r19445  
    3030            "fee", "restriction", "interval", "duration", "dog", "maxweightrating"));
    3131    private static final Set<String> RESTRICTION_VALUES = new HashSet<>(Arrays.asList("yes", "official", "designated", "destination",
    32             "delivery", "customers", "permissive", "private", "agricultural", "forestry", "no"));
     32            "delivery", "customers", "permissive", "private", "agricultural", "forestry", "no", "permit"));
    3333    private static final Set<String> TRANSPORT_MODES = new HashSet<>(Arrays.asList("access", "foot", "ski", "inline_skates", "ice_skates",
    3434            "horse", "vehicle", "bicycle", "carriage", "trailer", "caravan", "motor_vehicle", "motorcycle", "moped", "mofa",
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/ConditionalKeysTest.java

    r18870 r19445  
    6161        assertTrue(test.isValueValid("maxspeed:hgv:conditional", "60 @ (weight>7.5)"));
    6262        assertTrue(test.isValueValid("restriction:conditional", "no_left_turn @ (Mo-Fr 16:00-18:00)"));
     63        assertTrue(test.isValueValid("access:conditional", "permit @ Apr-Nov")); // #24531
    6364    }
    6465}
Note: See TracChangeset for help on using the changeset viewer.