forked from pydantic/pydantic
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check ModelField().validate_always when inheriting (pydantic#1545)
fix pydantic#1155 * fix issure pydantic#1155 * add changes.1545-dcHHH.md * improve change description Co-authored-by: dchhh <hudacong@geetest.com> Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
- Loading branch information
1 parent
e5fff9c
commit 8aebba2
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Move the assignment of `field.validate_always` in `fields.py` so the `always` parameter of validators work on inheritance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters