Removed class UniqueConstrainedList -> use unique_conlist(), Annotated[list, AfterValidator(validate_unique_items)] or Annotated[set, ...] instead
Removed class ChoiceList -> use choice_list() instead
Removed class ContactPersonList -> use contact_person_list() instead
Moved ReadOnlyField from pydantic_forms.core to pydantic_forms.validators
Changed ReadOnlyField from a pydantic Field to an Annotated Literal -> change your code from field: int = ReadOnlyField(123) to field: ReadOnlyField(123)
Breaking changes:
class UniqueConstrainedList
-> useunique_conlist()
,Annotated[list, AfterValidator(validate_unique_items)]
orAnnotated[set, ...]
insteadclass ChoiceList
-> usechoice_list()
insteadclass ContactPersonList
-> usecontact_person_list()
insteadReadOnlyField
frompydantic_forms.core
topydantic_forms.validators
ReadOnlyField
from a pydantic Field to an Annotated Literal -> change your code fromfield: int = ReadOnlyField(123)
tofield: ReadOnlyField(123)
Tasks: