ideditor / schema-builder

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

[deprecation] allow to disable a rule by presence of other tags and/or location #62

Open tyrasd opened 2 years ago

tyrasd commented 2 years ago

See https://github.com/openstreetmap/id-tagging-schema/issues/484:

  {
    "old": {"highway": "cycleway", "bicycle": "no"},
    "replace": {"highway": "path", "bicycle": "no"}
  },

We would like to be able to disable this rule when moped!=no (or mofa!=no) is set, as these two modes of transport are also considered valid uses of a highway=cycleway in certain jurisdictions or local OSM communities.

tyrasd commented 2 years ago

related: @1ec5 rightly suggests in https://github.com/openstreetmap/id-tagging-schema/pull/509#issuecomment-1163347274 that there might be cases where a deprecation/validation rule should only be active in a certain region (or should be inactive in a certain region). In the example case above, the validation rule could be active everywhere except in the NL, while the enhanced rule (with added mofa!=no condition) could be active only in the NL.