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: Allow to specify multiple values (or "not values") #140

Open
tordans opened this issue Feb 26, 2024 · 0 comments
Open

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

tordans opened this issue Feb 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tordans
Copy link
Collaborator

tordans commented Feb 26, 2024

I openstreetmap/id-tagging-schema#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 openstreetmap/id-tagging-schema@70e0945 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 #62, possibly.

 {
    "old": {"cycleway": ["!crossing", "!foo"]},
    "replace": {"cycleway:both": "*"}
  },
@tyrasd tyrasd added the enhancement New feature or request label Mar 6, 2024
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

2 participants