Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 371 - 380 of 557 for Extra (0.02 seconds)

  1. docs/zh-hant/docs/tutorial/request-form-models.md

    例如,用戶端若送出以下表單欄位:
    
    * `username`: `Rick`
    * `password`: `Portal Gun`
    * `extra`: `Mr. Poopybutthole`
    
    他們會收到一個錯誤回應,告知欄位 `extra` 不被允許:
    
    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
                "loc": ["body", "extra"],
                "msg": "Extra inputs are not permitted",
                "input": "Mr. Poopybutthole"
            }
        ]
    }
    ```
    
    ## 摘要 { #summary }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2K bytes
    - Click Count (0)
  2. 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  3. docs/es/docs/tutorial/query-param-models.md

    </div>
    
    ## Prohibir Parámetros Query Extras { #forbid-extra-query-parameters }
    
    En algunos casos de uso especiales (probablemente no muy comunes), podrías querer **restringir** los parámetros query que deseas recibir.
    
    Puedes usar la configuración del modelo de Pydantic para `forbid` cualquier campo `extra`:
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/Shorts.java

       *
       * @param array the source array
       * @param minLength the minimum length the returned array must guarantee
       * @param padding an extra amount to "grow" the array by if growth is necessary
       * @throws IllegalArgumentException if {@code minLength} or {@code padding} is negative
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  5. 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. CHANGELOG/CHANGELOG-1.10.md

    * Demoted controlplane passthrough flags apiserver-extra-args, controller-manager-extra-args, scheduler-extra-args to alpha flags ([#59882](https://github.com/kubernetes/kubernetes/pull/59882), [@kris-nova](https://github.com/kris-nova))
    
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Thu May 05 13:44:43 GMT 2022
    - 341.8K bytes
    - Click Count (0)
  7. docs/de/docs/index.md

    Zusätzliche optionale Pydantic-Abhängigkeiten:
    
    * [`pydantic-settings`](https://docs.pydantic.dev/latest/usage/pydantic_settings/) – für die Verwaltung von Einstellungen.
    * [`pydantic-extra-types`](https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/) – für zusätzliche Typen zur Verwendung mit Pydantic.
    
    Zusätzliche optionale FastAPI-Abhängigkeiten:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 23.6K bytes
    - Click Count (1)
  8. docs/zh/docs/tutorial/query-param-models.md

    你可以在 `/docs` 页面的 UI 中查看查询参数:
    
    <div class="screenshot">
    <img src="/img/tutorial/query-param-models/image01.png">
    </div>
    
    ## 禁止额外的查询参数 { #forbid-extra-query-parameters }
    
    在一些特殊的使用场景中(可能不是很常见),你可能希望**限制**你要接收的查询参数。
    
    你可以使用 Pydantic 的模型配置来 `forbid` 任何 `extra` 字段:
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    假设有一个客户端尝试在**查询参数**中发送一些**额外的**数据,它将会收到一个**错误**响应。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:39:41 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/request-form-models.md

    * `username`: `Rick`
    * `password`: `Portal Gun`
    * `extra`: `Mr. Poopybutthole`
    
    erhält er eine Error-Response, die ihm mitteilt, dass das Feld `extra` nicht erlaubt ist:
    
    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
                "loc": ["body", "extra"],
                "msg": "Extra inputs are not permitted",
                "input": "Mr. Poopybutthole"
            }
        ]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/request-form-models.md

    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
                "loc": ["body", "extra"],
                "msg": "Extra inputs are not permitted",
                "input": "Mr. Poopybutthole"
            }
        ]
    }
    ```
    
    ## Résumer { #summary }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 2.5K bytes
    - Click Count (0)
Back to Top