rm pydantic
#4
Answered
by
Alc-Alc
JacobCoffee
asked this question in
Q&A
-
Allow for validation-agnostic libraries |
Beta Was this translation helpful? Give feedback.
Answered by
Alc-Alc
Dec 5, 2023
Replies: 1 comment 2 replies
-
The middleware (by extension the plugin as well) is agnostic to the type of model used. https://github.com/Alc-Alc/litestar-basic-auth/blob/49e77b45052f74021672c61433aa8cba88d92b1c/litestar_basic_auth/app_with_plugin.py shows a dataclass being used as the user model. PS: Oops, I converted to a discussion. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JacobCoffee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The middleware (by extension the plugin as well) is agnostic to the type of model used. https://github.com/Alc-Alc/litestar-basic-auth/blob/49e77b45052f74021672c61433aa8cba88d92b1c/litestar_basic_auth/app_with_plugin.py shows a dataclass being used as the user model.
PS: Oops, I converted to a discussion.