- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 714 for pydantic (0.04 seconds)
-
docs/ru/docs/how-to/conditional-openapi.md
Если вы хотите обезопасить свой API, есть несколько более эффективных вещей, которые можно сделать, например: * Убедитесь, что у вас чётко определены Pydantic-модели для тел запросов и ответов. * Настройте необходимые разрешения и роли с помощью зависимостей. * Никогда не храните пароли в открытом виде, только хэши паролей.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 4.1K bytes - Click Count (0) -
docs_src/cookie_param_models/tutorial001_py310.py
from fastapi import Cookie, FastAPI from pydantic import BaseModel app = FastAPI() class Cookies(BaseModel): session_id: str fatebook_tracker: str | None = None googall_tracker: str | None = None @app.get("/items/") async def read_items(cookies: Cookies = Cookie()):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 303 bytes - Click Count (0) -
docs/en/docs/tutorial/path-params.md
The same way, there are many compatible tools. Including code generation tools for many languages. ## Pydantic { #pydantic } All the data validation is performed under the hood by <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>, so you get all the benefits from it. And you know you are in good hands.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 9.2K bytes - Click Count (0) -
docs/es/docs/tutorial/path-params.md
De la misma manera, hay muchas herramientas compatibles. Incluyendo herramientas de generación de código para muchos lenguajes. ## Pydantic { #pydantic } Toda la validación de datos se realiza internamente con <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>, así que obtienes todos los beneficios de esta. Y sabes que estás en buenas manos.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 9.8K bytes - Click Count (0) -
docs_src/pydantic_v1_in_v2/tutorial002_an_py39.py
from typing import Union from fastapi import FastAPI from pydantic.v1 import BaseModel class Item(BaseModel): name: str description: Union[str, None] = None size: float app = FastAPI() @app.post("/items/") async def create_item(item: Item) -> Item:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 284 bytes - Click Count (0) -
docs_src/body/tutorial003_py310.py
from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 330 bytes - Click Count (0) -
docs/zh/docs/deployment/versions.md
你不应该固定`starlette`的版本。 不同版本的 **FastAPI** 将使用特定的较新版本的 Starlette。 因此,**FastAPI** 自己可以使用正确的 Starlette 版本。 ## 关于 Pydantic Pydantic 包含针对 **FastAPI** 的测试及其自己的测试,因此 Pydantic 的新版本(`1.0.0`以上)始终与 FastAPI 兼容。 你可以将 Pydantic 固定到适合你的`1.0.0`以上和`2.0.0`以下的任何版本。 例如: ````txt pydantic>=1.2.0,<2.0.0
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Aug 06 04:48:30 GMT 2024 - 3.1K bytes - Click Count (0) -
docs_src/pydantic_v1_in_v2/tutorial001_an_py310.py
from pydantic.v1 import BaseModel class Item(BaseModel): name: str description: str | None = None
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 16:45:54 GMT 2025 - 124 bytes - Click Count (0) -
docs_src/header_param_models/tutorial001_an_py310.py
from typing import Annotated from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: Annotated[CommonHeaders, Header()]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 392 bytes - Click Count (0) -
docs_src/path_operation_configuration/tutorial001_py310.py
from fastapi import FastAPI, status from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() @app.post("/items/", response_model=Item, status_code=status.HTTP_201_CREATED) async def create_item(item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 363 bytes - Click Count (0)