Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tyrasd opened this issue Feb 14, 2024 · 1 comment
Open

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

tyrasd opened this issue Feb 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tyrasd
Copy link
Collaborator

tyrasd commented Feb 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant