-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate remaining schemas to pydantic 2 (#333)
* Migrate collection config and links to pydantic 2. * Migrate docs schemas to pydantic 2. * Remove _pydantic_compat module. * Add changelog fragment. * Rewrite location type name removal. * Add missing __future__ import. * Use t.Literal instead of pattern if possible. * Avoid conflict between remove_example and normalize_sample validators by combining them. * Make default object creation more efficient. Co-authored-by: Maxwell G <[email protected]> * Use strings.ascii_uppercase. * Remove wrong comments. * Lint. * Use default constructor instead of `model_validate({})`. Co-authored-by: Maxwell G <[email protected]> * Bump antsibull-core requirement to 3.2.0. --------- Co-authored-by: Maxwell G <[email protected]>
- Loading branch information
1 parent
4a45097
commit f866406
Showing
68 changed files
with
2,492 additions
and
2,418 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
minor_changes: | ||
- "This project now depends on antsibull-core >= 3.1.0 and pydantic 2 (https://github.com/ansible-community/antsibull-docs/pull/330)." | ||
- "This project now depends on antsibull-core >= 3.2.0 and pydantic 2 (https://github.com/ansible-community/antsibull-docs/pull/330)." | ||
- "When rendering the Ansible docsite with the ``stable`` and ``devel`` subcommands, information on deprecated collections is shown | ||
(https://github.com/ansible-community/ansible-build-data/pull/450, https://github.com/ansible-community/antsibull-docs/pull/330)." |
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,6 @@ | ||
minor_changes: | ||
- "Migrated all models to Pydantic 2. This is mostly transparent, except that validation error messages slightly change, and that | ||
some validation is more strict. For example, if a boolean is used instead of a string, say in a description, this now results | ||
in an error instead of a silent coercion. Numbers are still accepted for strings (for example ``version_added`` with float values | ||
like ``2.14``) | ||
(https://github.com/ansible-community/antsibull-docs/pull/331, https://github.com/ansible-community/antsibull-core/pull/333)." |
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 was deleted.
Oops, something went wrong.
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.