Skip to content
Discussion options

You must be logged in to vote

Hey, anyway I fixed my issue by noticing that validations belong to pydantic's "schema" instead of sqlalchemy's "model", hence, the @validator decorator should be applied to validating methods belong to the schemas classes, instead of models classes.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jonra1993
Comment options

Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants