Big update 1.0.0.0 !
UPD 03.09.2022: Please update to 1.0.1.0!
- The decorator above the model is no longer required and will be removed in the next version!
- New syntax:
data: MyCustomModel = PyFaDepends(MyCustomModel, _type=Header)
data: MyCustomModel = PyFaDepends(MyCustomModel, _type=Form)
data: MyCustomModel = FormDepends(MyCustomModel)
data: MyCustomModel = QueryDepends(MyCustomModel)
- Added support for parameters specific only to FastAPI types in Pydantic Field. Example -
Field(None, convert_underscores=True)