mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
13928e5b98
* 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 dad3d3e23a7336aa978dcdedc157559ea102fa54. * 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>