Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
docs: More specificmodel_post_init
explanation#10453
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
CodSpeed Performance ReportMerging#10453 willnot alter performanceComparing Summary
|
Hi! Thanks for the contribution. I believe this takes place afterall validation, so perhaps it'd be better to specify that instead? Not narrow down to just field validators? |
santibreo commentedSep 21, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi, thanks for your comment. As far as I discovered (you can check in the gist) the |
Thanks for following up! Ah yes, now I recall, we inject different functional validators at different points in the core schema. Perhaps it's best to document this pattern somewhere explicitly (in |
Also, happy to accept this PR and I can work on that docs PR. Lmk if you're still interested in more docs updates here! |
Hi!. I agree it would be better to include a more in-depth explanation in |
Going to go ahead and merge as is, I think my lingering concerns can be addressed with#8277 |
643ea79
intopydantic:mainUh oh!
There was an error while loading.Please reload this page.
I want to make a small but specific change to the documentation. I find the library great, but I feel a little confused when I use field validators, model validators, and
model_post_init
all at once. To illustrate this, I createdthis gist.Because there are so many ways to hook into model instantiation, I would like to clarify their order of precedence.