Skip to content

How to add custom validators that adhere to spectree's validation? #361

Discussion options

You must be logged in to vote

You can raise ValueError here. It will be converted to a ValidationError in pydantic. Then it will be processed by spectree like the usual validation errors.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@guilhermeschmitd-hotmart
Comment options

Answer selected by guilhermeschmitd-hotmart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants