[1.0.0] - 2025-01-18
Added
Pydantic 2.x Support
- Union types with
|operator (PEP 604):int | None,str | None Field()with validation constraints:max_length,min_length,gt,ge,lt,lemodel_configwithConfigDicthandling- Nested generic types:
list[dict[str, str]],dict[str, list[int]]
OpenAPI 3.0/Swagger Support
- New
parse_openapi()function to parse OpenAPI specs from string - New
parse_openapi_file()function to parse from YAML or JSON files - Supports OpenAPI 3.0
components/schemasand Swagger 2.0definitions - Type mapping from OpenAPI types to Python types
- Support for
$ref,allOf,oneOf,anyOfcompositions
Python Version Support
- Added support for Python 3.12
- Added support for Python 3.13
Documentation
- Added ARCHITECTURE.md with project documentation
Changed
Breaking Changes
- Dropped support for Python 3.7
- Dropped support for Python 3.8
- Minimum required Python version is now 3.9
Dependencies
- Added
pyyamldependency for OpenAPI parsing
Testing
- Added 8 new tests for Pydantic 2.x features
- Added 15 tests for OpenAPI parsing
- Updated CI to test Python 3.9, 3.10, 3.11, 3.12, 3.13