Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ConstrainedFloat schema: differences between IEEE floats and json (#1422
) * ConstrainedFloat schema: account for differences between IEEE floats and json * add changes * Update changes/1417-vdwees.md Co-Authored-By: Samuel Colvin <samcolvin@gmail.com> * Update changes/1417-vdwees.md Co-Authored-By: Samuel Colvin <samcolvin@gmail.com> * fixup * Update pydantic/types.py Difference of styles :) Co-Authored-By: Samuel Colvin <samcolvin@gmail.com> * merge _schema_ieee_compatibility_transform into parent method * capitalize * use type_, not outer_type_ Co-authored-by: Jesse VanderWees <jesse.vanderwees@kisters-bv.nl> Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
- Loading branch information
1 parent
9b2310a
commit 833d33d
Showing
4 changed files
with
21 additions
and
0 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,3 @@ | ||
Modify schema constraints on `ConstrainedFloat` so that `exclusiveMinimum` and | ||
minimum are not included in the schema if they are equal to `-math.inf` and | ||
`exclusiveMaximum` and `maximum` are not included if they are equal to `math.inf`. |
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