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

Restricted String value class would be useful - limit length, characters, etc. #155

Open
lisad opened this issue Aug 18, 2024 · 0 comments

Comments

@lisad
Copy link
Owner

lisad commented Aug 18, 2024

String values are sometimes subject to constraints that aren't appropriate to the other kinds of data types

  • Forbidden characters: characters like '<', '$', '%' may be forbidden in fields like name, title
  • Instead of a forbidden list, the datatype might only have allowed characters e.g. (a-zA-Z) or a class of allowed characters and others are forbidden. (what does pandas do here if anything?
  • Strings may have minimum character length or maximum

Although a plain Column is fine for strings without these constraints, should we make a ConstrainedString or RestrictedString column type that has these constraints builtin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant