Changeset 6605 in josm for trunk/data/validator


Ignore:
Timestamp:
2014-01-03T10:22:49+01:00 (11 years ago)
Author:
simon04
Message:

fix #9350 - Validator: test for the correct usage of :conditional tags, deprecate day|date|hour_on|off tags

This validates the correct syntax of :conditional keys and values (for the latter, only <restriction-value> @ <condition> and opening_hours are checked).

For more tests a preciser specification for allowed conditions is required (such as occupants>1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/deprecated.mapcss

    r6548 r6605  
    177177  fixChangeKey: "monitoring:river_level => monitoring:water_level";
    178178}
     179
     180/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
     181*[/(day|date|hour)_(on|off)/] {
     182  throwWarning: tr("{0} is deprecated", "{0.key}");
     183  suggestAlternative: "*:conditional";
     184  assertMatch: "node day_on=0-12";
     185}
Note: See TracChangeset for help on using the changeset viewer.