Changeset 13086 in josm


Ignore:
Timestamp:
2017-11-05T19:26:43+01:00 (7 years ago)
Author:
Klumbumbus
Message:

fix #15269 - Warn about bare tourism=attraction

File:
1 edited

Legend:

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

    r13084 r13086  
    255255  group: tr("missing tag");
    256256}
    257 /* only {0.key} and {1.key}, see #11104 */
     257/* only {0.key} and {1.key} */
    258258*[name][area][eval(number_of_tags()) = 2],
    259259*[name][ref][eval(number_of_tags()) = 2] {
    260260  throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.key}");
     261  group: tr("missing tag");
     262}
     263/* only {0.tag}, #15269 */
     264*[tourism=attraction][eval(number_of_tags()) = 1] {
     265  throwWarning: tr("incomplete object: only {0}", "{0.tag}");
     266  group: tr("missing tag");
     267}
     268/* only {0.key} and {1.tag} */
     269*[name][tourism=attraction][eval(number_of_tags()) = 2] {
     270  throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.tag}");
    261271  group: tr("missing tag");
    262272}
Note: See TracChangeset for help on using the changeset viewer.