[CT-1184] [Feature] Exposures: stricter validation for name
, support custom label
#5606
Closed
3 tasks done
Labels
Is this your first time submitting a feature request?
Describe the feature
Currently, it's possible to define an exposure like:
A surprising number of things will keep working:
The problem is that it's not guaranteed to work everywhere. In particular, the
dbt-docs
site DAG selection does not handle exposure names with spaces (#2970).Rather than fix it everywhere, I'd prefer to adopt the same approach we'll be taking for metrics (#5456):
name
property of exposures: snake-case, alphanumeric characters, maybe periods (since this is supported for models)label
property that can be used in external metadata, and contain whatever characters the heart desiresDescribe alternatives you've considered
label
I don't like either very much!
Who will this benefit?
Are you interested in contributing this feature?
Perhaps :)
Anything else?
No response
The text was updated successfully, but these errors were encountered: