Browse Source

Update documentation for Pydantic's BaseModel

Removed note about BaseModel usage in Pydantic.
pull/14480/head
Ibrahim Pelumi Lasisi 6 months ago
committed by GitHub
parent
commit
8e1f8a02ee
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      docs/en/docs/tutorial/body.md

7
docs/en/docs/tutorial/body.md

@ -20,13 +20,6 @@ As it is discouraged, the interactive docs with Swagger UI won't show the docume
## Import Pydantic's `BaseModel` { #import-pydantics-basemodel }
/// note
`BaseModel` is the main class from Pydantic used for creating data models.
FastAPI needs this import to validate request bodies and generate documentation.
///
First, you need to import `BaseModel` from `pydantic`:
{* ../../docs_src/body/tutorial001_py310.py hl[2] *}

Loading…
Cancel
Save