ideditor / schema-builder

🏗🏷 Create tagging schemas for iD
ISC License
12 stars 16 forks source link

deprecation: Allow to specify multiple values (or "not values") #140

Open tordans opened 4 months ago

tordans commented 4 months ago

I https://github.com/openstreetmap/id-tagging-schema/pull/1137/ I am experimenting with a possible deprecation rule. However, that matches on cycleway=crossing as well, which it should not – that tag should never get the :both treatment.

In https://github.com/openstreetmap/id-tagging-schema/pull/1137/commits/70e09454a87ac6368c78127a8a498a74e47ad34d I worked around it by listing common values.

However, it would be nicer, to either…

Specify a list of values to match

(The * would still copy whatever was matched, which is fine.

 {
    "old": {"cycleway": ["yes", "no", "lane", "track"]},
    "replace": {"cycleway:both": "*"}
  },

Specify a list of values to not match

This could be the same as https://github.com/ideditor/schema-builder/issues/62, possibly.

 {
    "old": {"cycleway": ["!crossing", "!foo"]},
    "replace": {"cycleway:both": "*"}
  },