Changeset 16244 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-04-08T15:07:41+02:00 (5 years ago)
Author:
simon04
Message:

fix #19048 - Opening hours syntax: validate opening_hours:covid19

File:
1 edited

Legend:

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

    r16178 r16244  
    114114                errors.addAll(checkOpeningHourSyntax(key, p.get(key), p, Locale.getDefault()));
    115115            }
     116            // COVID-19, a few additional values are permitted, see #19048, see https://wiki.openstreetmap.org/wiki/Key:opening_hours:covid19
     117            final String keyCovid19 = "opening_hours:covid19";
     118            if (p.hasTag(keyCovid19) && !p.hasTag(keyCovid19, "same", "restricted", "open", "off")) {
     119                errors.addAll(checkOpeningHourSyntax(keyCovid19, p.get(keyCovid19), p, Locale.getDefault()));
     120            }
    116121        }
    117122    }
Note: See TracChangeset for help on using the changeset viewer.