simonpoole/OpeningHoursFragment

opening hour added using Vespucci fails validation

Closed this issue · 2 comments

In this case the ypid tool is correct, the "error" is that the specification doesn't allow

<month>-<month> <daynum>

but only either

<month> <daynum>-<month> <daynum>

or
<month>-<month>

On the one hand we should likely throw a parse error here and on the other stop allow adding of this. This will require a separate menu entry (which I wanted to avoid which is why we have this issue).

See https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification

This is fixed in the parser now (in non-strict mode it will try to add a missing and otherwise complain.