Results of 1 - 2 of about 2 for Dataclasses (0.004 sec.)
- Using Dataclasses 11228
- Using Dataclasses Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI is built on top of Pydantic , and I have been showing you how to use Pydantic models to d
...eclare requests and responses. But FastAPI also supports using dataclasses the same way: Python 3.8+ from dataclasses import dataclass from typing import Union from fastapi import FastAPI @dataclas...c def create_item ( item : Item ): return item This is still supported thanks to Pydantic , as it has internal support for dataclasses . So, even with the code above that doesn't use Pydantic explicitly, FastAPI is using Pydantic to convert those standard d...ataclasses to Pydantic's own flavor of dataclasses. And of course, it supports the same: data validation data serialization data documentation, etc. This works the same way... - https://man.mtool.work/fastapi/0.115/advanced/dataclasses/
- Release Notes 7485
- Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom
...? Update includes for docs/de/docs/python-types.md . PR #12660 by @alissadb . ? Update includes for docs/de/docs/advanced/dataclasses.md . PR #12658 by @alissadb . ? Update includes in docs/fr/docs/tutorial/path-params.md . PR #12592 by @kantandane . ? Upd...Update includes in docs/en/docs/advanced/events.md . PR #12604 by @salmantec . ? Update includes in docs/en/docs/advanced/dataclasses.md . PR #12603 by @salmantec . ? Update includes in docs/es/docs/tutorial/cookie-params.md . PR #12602 by @antonyare93 . ?...ocs/pt/docs/how-to/extending-openapi.md . PR #12470 by @ilacftemp . ? Add Portuguese translation for docs/pt/docs/advanced/dataclasses.md . PR #12475 by @leoscarlato . ? Add Portuguese translation for docs/pt/docs/how-to/custom-request-and-route.md . PR #12... - https://man.mtool.work/fastapi/0.115/release-notes/
PREV
1
NEXT