Change8

0.117.0

📦 fastapiView on GitHub →
3 features🐛 5 fixes🔧 5 symbols

Summary

This release introduces support for bodiless responses and array-based OpenAPI types, while providing several bug fixes for Pydantic V1 integration and dependency resolution.

✨ New Features

  • Allow None as return type for bodiless responses.
  • Allow array values for OpenAPI schema type field.
  • Add OpenAPI external_docs parameter to FastAPI class.

🐛 Bug Fixes

  • Fix default_factory for response model field with Pydantic V1.
  • Fix inconsistent processing of model docstring formfeed char with Pydantic V1.
  • Fix jsonable_encoder altering json_encoders of Pydantic v1 objects.
  • Reenable allow_arbitrary_types when only 1 argument is used on the API endpoint.
  • Fix inspect.getcoroutinefunction() breaking testing with unittest.mock.patch().

🔧 Affected Symbols

FastAPIjsonable_encodersolve_dependenciesinspect.getcoroutinefunctionpydantic.v1