-
Notifications
You must be signed in to change notification settings - Fork 172
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
Limit the number of characters with string datatype #545
Comments
There is no mechanism for that today. We have a similar topic for strings where the description says it shall be time formatted according to ISO 8601. One thought I had at a time was to "invent" special units, like |
I would not use the |
I came up with a possible but maybe somewhat ugly idea for the string datatype. We have already |
Discussed in #533
Originally posted by jdacoello February 10, 2023
Is it possible to define the number of valid characters when using string datatype? One example would be to set light colours using hexadecimal color code, where 7 characters are expected.
#ABCDEF
If not, I can create an issue to work on that.
Another example where this function can help is the
VIN
number:In practice, how do you enforce the use of 17 characters? If this characteristic is only mentioned in the description, one must have a custom function that does the job. In contrast, if a field in VSS explains the constraints, the user can refer to the described constraints.
The text was updated successfully, but these errors were encountered: