Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce allow_mutation Field constraint (#2196)
* introduce read_only Field constraint * add changes markdown for read_only constraint * add readOnly property to json schema generation * Revert "add readOnly property to json schema generation" This reverts commit dad3d3e. * change read_only field constraint to allow_mutation * Update change notes for allow_mutation Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * allow field constraints defaults to be not None * remove unnecessary test after constraint refactor * push used constraints check back to schema functions * use tuple item name descriptions instead of indexes * move get_constraints function to method on FieldInfo * address code review comments for minor changes * Apply suggestions from code review Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * fix merge conflict Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
- Loading branch information
1 parent
add3a67
commit 13928e5
Showing
7 changed files
with
93 additions
and
29 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 @@ | ||
add `allow_mutation` constraint to `Field` |
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
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