Change8

0.119.0

📦 fastapiView on GitHub →
2 features1 deprecations🔧 3 symbols

Summary

This release introduces temporary dual-support for Pydantic v1 and v2 models to facilitate migration, while officially deprecating Pydantic v1 support.

Migration Steps

  1. Gradually migrate existing Pydantic v1 models to Pydantic v2.
  2. Use 'pydantic.v1' for legacy models while implementing new models with Pydantic v2.
  3. Follow the official FastAPI migration guide for Pydantic v2.

✨ New Features

  • Support for using both Pydantic v2 and pydantic.v1 models simultaneously in the same application.
  • Added support for 'from pydantic.v1 import BaseModel' within FastAPI routes and models.

🔧 Affected Symbols

pydantic.v1pydantic.BaseModelfastapi.FastAPI

⚡ Deprecations

  • Support for Pydantic v1 is now deprecated and will be removed in a future version.