Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.10.x] Properly encode model and dataclass default for schema (#4781)
* Properly encode model and dataclass default for schema * Wrap type annotation in quotes * Fix compatibility * Add changes file * Remove unnecessary import Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com> * Add a blank line back * Reorder conditions As per suggestion in #4781 (comment). Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
- Loading branch information
Showing
3 changed files
with
42 additions
and
3 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 @@ | ||
Fix `schema` and `schema_json` on models where a model instance is a one of default values. |
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