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

fix: let model_validator return self #205

Merged
merged 2 commits into from
Jan 13, 2025
Merged

fix: let model_validator return self #205

merged 2 commits into from
Jan 13, 2025

Conversation

hf-kklein
Copy link
Contributor

UserWarning: A custom validator is returning a value other than self.
Returning anything other than self from a top level model validator isn't supported when validating via __init__.
See the model_validator docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.

Konstantin added 2 commits January 13, 2025 13:41
UserWarning: A custom validator is returning a value other than `self`.
Returning anything other than `self` from a top level model validator isn't supported when validating via `__init__`.
See the `model_validator` docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.
@hf-kklein hf-kklein merged commit 0fbed1d into main Jan 13, 2025
15 checks passed
@hf-kklein hf-kklein deleted the warning branch January 13, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant