- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 615 for extras (0.04 seconds)
-
docs/ru/docs/tutorial/header-param-models.md
</div> ## Как запретить дополнительные заголовки { #forbid-extra-headers } В некоторых случаях (не особо часто встречающихся) вам может понадобиться **ограничить** заголовки, которые вы хотите получать. Вы можете использовать возможности конфигурации Pydantic-модели для того, чтобы запретить (`forbid`) любые дополнительные (`extra`) поля: {* ../../docs_src/header_param_models/tutorial002_an_py310.py hl[10] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:24:39 GMT 2025 - 4.3K bytes - Click Count (0) -
tests/test_tutorial/test_cookie_param_models/test_tutorial002.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 6.3K bytes - Click Count (0) -
docs/uk/docs/tutorial/request-form-models.md
```json { "detail": [ { "type": "extra_forbidden", "loc": ["body", "extra"], "msg": "Extra inputs are not permitted", "input": "Mr. Poopybutthole" } ] } ``` ## ПідсумокCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Feb 20 14:16:09 GMT 2025 - 3.3K bytes - Click Count (0) -
docs/ko/docs/tutorial/request-form-models.md
이 기능은 FastAPI 버전 `0.114.0` 이후부터 지원됩니다. 🤓 /// Pydantic의 모델 구성을 사용하여 추가(`extra`) 필드를 금지(`forbid`)할 수 있습니다: {* ../../docs_src/request_form_models/tutorial002_an_py39.py hl[12] *} 클라이언트가 추가 데이터를 보내려고 하면 **오류** 응답을 받게 됩니다. 예를 들어, 클라이언트가 폼 필드를 보내려고 하면: * `username`: `Rick` * `password`: `Portal Gun` * `extra`: `Mr. Poopybutthole` `extra` 필드가 허용되지 않는다는 오류 응답을 받게 됩니다: ```json { "detail": [ {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Dec 09 12:44:27 GMT 2024 - 2.3K bytes - Click Count (0) -
docs/zh/docs/tutorial/request-form-models.md
自 FastAPI 版本 `0.114.0` 起支持此功能。🤓 /// 您可以使用 Pydantic 的模型配置来禁止( `forbid` )任何额外( `extra` )字段: {* ../../docs_src/request_form_models/tutorial002_an_py39.py hl[12] *} 如果客户端尝试发送一些额外的数据,他们将收到**错误**响应。 例如,如果客户端尝试发送这样的表单字段: * `username`: `Rick` * `password`: `Portal Gun` * `extra`: `Mr. Poopybutthole` 他们将收到一条错误响应,表明字段 `extra` 是不被允许的: ```json { "detail": [ {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 10 20:36:08 GMT 2024 - 2.1K bytes - Click Count (0) -
tests/test_query_cookie_header_model_extra_params.py
from fastapi import Cookie, FastAPI, Header, Query from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Model(BaseModel): param: str model_config = {"extra": "allow"} @app.get("/query") async def query_model_with_extra(data: Model = Query()): return data @app.get("/header") async def header_model_with_extra(data: Model = Header()): return data
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.3K bytes - Click Count (0) -
docs/es/docs/tutorial/bigger-applications.md
Sabemos que todas las *path operations* en este módulo tienen el mismo: * Prefijo de path: `/items`. * `tags`: (solo una etiqueta: `items`). * `responses` extra. * `dependencies`: todas necesitan esa dependencia `X-Token` que creamos. Entonces, en lugar de agregar todo eso a cada *path operation*, podemos agregarlo al `APIRouter`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 19.6K bytes - Click Count (0) -
tests/test_forms_single_model.py
alias_with: str = Field(alias="with", default="nothing") class FormModelExtraAllow(BaseModel): param: str model_config = {"extra": "allow"} @app.post("/form/") def post_form(user: Annotated[FormModel, Form()]): return user @app.post("/form-extra-allow/") def post_form_extra_allow(params: Annotated[FormModelExtraAllow, Form()]): return params client = TestClient(app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 3.4K bytes - Click Count (0) -
pyproject.toml
# To validate email fields "email-validator >=2.0.0", # Uvicorn with uvloop "uvicorn[standard] >=0.12.0", # # Settings management "pydantic-settings >=2.0.0", # # Extra Pydantic data types "pydantic-extra-types >=2.0.0", ] standard-no-fastapi-cloud-cli = [ "fastapi-cli[standard-no-fastapi-cloud-cli] >=0.0.8", # For the test client "httpx >=0.23.0,<1.0.0", # For templatesCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 9.3K bytes - Click Count (0) -
src/archive/zip/struct.go
directory64EndSignature = 0x06064b50 dataDescriptorSignature = 0x08074b50 // de-facto standard; required by OS X Finder fileHeaderLen = 30 // + filename + extra directoryHeaderLen = 46 // + filename + extra + comment directoryEndLen = 22 // + comment dataDescriptorLen = 16 // four uint32: descriptor signature, crc32, compressed size, size
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue May 28 21:41:09 GMT 2024 - 12.1K bytes - Click Count (0)