Skip to content

1.0.0 - Pydantic v2 & OAS3 Support

Latest

Choose a tag to compare

@xnuinside xnuinside released this 18 Jan 04:05
· 2 commits to main since this release

[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, le
  • model_config with ConfigDict handling
  • 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/schemas and Swagger 2.0 definitions
  • Type mapping from OpenAPI types to Python types
  • Support for $ref, allOf, oneOf, anyOf compositions

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 pyyaml dependency 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