-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking change: migrate to Pydantic 2.x (#14)
* Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Pydantic 2.3 support * Move to separate components * Move to separate components * Move to separate components * Move to separate components * Move to separate components * Move to separate components * Move to separate components * Remove warnings * Remove warnings * 19 failing unit tests * Remove warnings * Remove warnings * Simplify ListOfOne and ListOfTwo * Change unique_list to a Pydantic2 version * Fix list of one and two after unique_conlist change * Change core and core_async tests with PydanticV2 enum validation changes * Fix more tests * Fix more tests * Fix tests * flake8 * flake8 * mypy * Support Python 3.9 * Disable rapidjson * Latest pydantic * Latest pydantic * Fix * Fix unit test for Pydantic 2.4.2 * Serialize ValueError * Fix * Pydantic 2.4 changes * isort * Review comments * Replace isort/flake8 with ruff, pre-commit autoupdate * Refactor choice/choice_list and enable schema tests * Fix contact person list schema * Adapt expected json schema in test_display_subscription.py and test_migration_summary.py to the actual json schema * Fix pydantic warning: change Accept to return a string as per its schema * Expose types in validators/__init__.py Cleanup validators Move remove_empty_items to core * Bump version from to 1.0.0a0 * Fix ruff errors * Remove UniqueConstrainedList, refactor ListOfOne/ListOfTwo/unique_conlist/choice_list * Fix validate_unique_list for non-hashable items * Add more-itertools to requirements * Breaking change: move ReadOnlyField to validators and refactor it to an Annotated Literal * Pin mypy 1.6.1 * ReadOnlyField support for None and lists * Add ReadOnlyField testcase for list of BaseModels * Add todos * Add UUID testcase for Choice * Bump pydantic to 2.5 * Bump version to 1.0.0a1 * Filter empty items in contact_person_list validator * Cleanup commented code * Convert Pydantic v2's validation errors to our needs * Updated the project version and classifiers * Bump version to 1.0.0a2 * Serialize attribute error * Fix typo * Fix Choice schema to always create an enum * Fix single choice * Rewrite Accept to use default Enum validation * Link issues * Bump version --------- Co-authored-by: Maurits Rijk <[email protected]> Co-authored-by: Tjeerd.Verschragen <[email protected]> Co-authored-by: Peter Boers <[email protected]>
- Loading branch information
1 parent
55245ef
commit fa9630d
Showing
55 changed files
with
2,181 additions
and
1,488 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
|
||
"""This is the pydantic-forms engine.""" | ||
|
||
__version__ = "0.2.0" | ||
__version__ = "1.0.0rc1" |
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
Oops, something went wrong.