Skip to content
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

add functional_validators.py::model_validator docs with link to usage docs #7976

Merged
merged 4 commits into from Oct 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion pydantic/functional_validators.py
Expand Up @@ -458,8 +458,10 @@ def model_validator(
*,
mode: Literal['wrap', 'before', 'after'],
) -> Any:
"""Decorate model methods for validation purposes.
"""Usage docs: https://docs.pydantic.dev/latest/concepts/validators/#model-validators
hramezani marked this conversation as resolved.
Show resolved Hide resolved

Decorate model methods for validation purposes.
hramezani marked this conversation as resolved.
Show resolved Hide resolved

hramezani marked this conversation as resolved.
Show resolved Hide resolved
Args:
mode: A required string literal that specifies the validation mode.
It can be one of the following: 'wrap', 'before', or 'after'.
Expand Down