Add constraints to #Lineage.name
#66
Labels
invariants
Involves the definition or enforcement of a key system invariant
#Lineage.name
#66
At minimum, we want:
strings.MinRunes(1)
~=[z-aA-Z0-9_]
Probably the ideal target is the set of valid characters for an unquoted CUE label. That covers another known, future use case by disallowing slashes - important to be able to introduce e.g. an optional
#Lineage.uri
property later, and enforce that its trailing element is ==#Lineage.name
and be able to know a priori that there is only one trailing element.Again, we can open this up more later. Opting for restrictiveness initially gives us more options later.
The text was updated successfully, but these errors were encountered: