-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Feature Request] z.choice
Show choice(s) on validation error
#48
Comments
You're looking for |
Thanks, sorry for my carelessness, I wish there would be a better documentation tho😭 |
We can leave the issue open to track the latter suggestion of displaying the valid choices. |
tingerrr
changed the title
[Feature Request] Literal type
Include valid chocies in Sep 15, 2024
choice
error message
sjfhsjfh
changed the title
Include valid chocies in
[Feature Request] Sep 15, 2024
choice
error messagez.choice
Show choice(s) on validation error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to request support for a literal type in valkyrie. The feature should allow defining a literal value from a fixed set of options. For example, something like:
In addition to enforcing the literal value, I would also like the error message to clearly indicate the accepted literals when a validation fails. For instance, if the input does not match one of the defined literals (“full”, “simplified”, or “none”), the error message should display something like:
Thank you for considering this request!
The text was updated successfully, but these errors were encountered: