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

Add support for validation to the text prompt component #204

Open
pepicrft opened this issue Feb 26, 2025 · 0 comments
Open

Add support for validation to the text prompt component #204

pepicrft opened this issue Feb 26, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pepicrft
Copy link
Contributor

While using the text prompt, I noticed that it'd be useful to support validations. We can add default validations, like non-empty, or min and max length, and have a custom option for the caller to pass a custom validation. At the end of the day, a validation is a function that takes the value, and returns a result.

@pepicrft pepicrft added enhancement New feature or request good first issue Good for newcomers labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant