ideditor / schema-builder

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

deprecation rule: specify list of possible "replace" resolutions #138

Open tyrasd opened 5 months ago

tyrasd commented 5 months ago

sometimes tags are deprecated, but don't have a 1:1 correspondence to a single new tag, but instead a (small) set of possible new tagging variants could be used as a replacement. currently, this is not possible to model using the deprecated.json schema. Something like this would be more powerful:

  {
    "old": {"oldkey": "oldvalue"},
    "replace": [
        {"description": "option A", "tags":  {"newkey": "newvalue1"}},
        {"description": "option B", "tags":  {"newkey": "newvalue2"}}
    ]
  },

iD could then show the two (or more) options in the tag upgrade widget alongside the given (translated) descriptions.

tyrasd commented 4 months ago

other examples: