Skip to content

restrict url/website validation to specific tags#12178

Merged
tyrasd merged 5 commits intoopenstreetmap:developfrom
bhavyaKhatri2703:limit_url_validation_to_specific_tags
Apr 8, 2026
Merged

restrict url/website validation to specific tags#12178
tyrasd merged 5 commits intoopenstreetmap:developfrom
bhavyaKhatri2703:limit_url_validation_to_specific_tags

Conversation

@bhavyaKhatri2703
Copy link
Copy Markdown
Contributor

fixes #12137

This pr restricts the url validator to specific tags like:
'website', 'url', 'contact:website', 'contact:url', 'source:website', 'source:url', 'image', 'wikimedia_commons', 'brand:website', 'operator:website', 'network:website', 'website:en', 'website:fr', 'website:menu', 'post_office:website',

@tyrasd tyrasd added the validation An issue with the validation or Q/A code label Apr 8, 2026
Copy link
Copy Markdown
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wikimedia_commons did not belong to this list. Also, I moved the variable to the osm/tags module, so that it's easier to reuse/find in the future.

@tyrasd tyrasd merged commit 0c2e840 into openstreetmap:develop Apr 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

validation An issue with the validation or Q/A code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

limit URL validation to only specific tags containing website in the key

2 participants