Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added schema generation for Generic fields (#2262)
* Added schema generation for Generic fields with tests. Fixed test_assert_raises_validation_error. * Added schema generation for Generic fields with tests. Fixed test_assert_raises_validation_error. * tested on python 3.6, 3.7, 3.8, 3.9 * tested on python 3.6, 3.7, 3.8, 3.9 * restore formatting * fix mistakes * formatting * formatting * formatting * fixed coverage * changes file * changes file * remove redundant len * Update pydantic/schema.py Co-authored-by: Maz Jaleel <mazjaleel@gmail.com> Co-authored-by: Maxim Berg <berg@petrostyle.com> Co-authored-by: Maz Jaleel <mazjaleel@gmail.com>
- Loading branch information
1 parent
b742c6f
commit c3870b6
Showing
4 changed files
with
86 additions
and
5 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 @@ | ||
Support generating schema for Generic fields. |
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
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