Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 452 for Extra (0.01 sec)

  1. tests/test_response_model_as_return_annotation.py

                    }
                },
                "/response_model-no_annotation-return_dict_with_extra_data": {
                    "get": {
                        "summary": "Response Model No Annotation Return Dict With Extra Data",
                        "operationId": "response_model_no_annotation_return_dict_with_extra_data_response_model_no_annotation_return_dict_with_extra_data_get",
                        "responses": {
                            "200": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  2. docs_src/header_param_models/tutorial002_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Header
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class CommonHeaders(BaseModel):
        model_config = {"extra": "forbid"}
    
        host: str
        save_data: bool
        if_modified_since: Union[str, None] = None
        traceparent: Union[str, None] = None
        x_tag: list[str] = []
    
    
    @app.get("/items/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 451 bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/header-param-models.md

    <div class="screenshot">
    <img src="/img/tutorial/header-param-models/image01.png">
    </div>
    
    ## 禁止额外的 Headers
    
    在某些特殊使用情况下(可能并不常见),您可能希望**限制**您想要接收的 headers。
    
    您可以使用 Pydantic 的模型配置来禁止( `forbid` )任何额外( `extra` )字段:
    
    {* ../../docs_src/header_param_models/tutorial002_an_py310.py hl[10] *}
    
    如果客户尝试发送一些**额外的 headers**,他们将收到**错误**响应。
    
    例如,如果客户端尝试发送一个值为 `plumbus` 的 `tool` header,客户端将收到一个**错误**响应,告知他们 header 参数 `tool` 是不允许的:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 15 16:44:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/security/index.md

    # Seguridad Avanzada { #advanced-security }
    
    ## Funcionalidades Adicionales { #additional-features }
    
    Hay algunas funcionalidades extra para manejar la seguridad aparte de las cubiertas en el [Tutorial - Guía del Usuario: Seguridad](../../tutorial/security/index.md){.internal-link target=_blank}.
    
    /// tip | Consejo
    
    Las siguientes secciones **no son necesariamente "avanzadas"**.
    
    Y es posible que para tu caso de uso, la solución esté en una de ellas.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 786 bytes
    - Viewed (0)
  5. docs_src/query_param_models/tutorial002_an_py39.py

    from typing import Annotated, Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        model_config = {"extra": "forbid"}
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 483 bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/body-fields.md

    ///
    
    ## Zusätzliche Information hinzufügen { #add-extra-information }
    
    Sie können zusätzliche Information in `Field`, `Query`, `Body`, usw. deklarieren. Und es wird im generierten JSON-Schema untergebracht.
    
    Sie werden später mehr darüber lernen, wie man zusätzliche Information unterbringt, wenn Sie lernen, Beispiele zu deklarieren.
    
    /// warning | Achtung
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/testing/Flaky.kt

     * limitations under the License.
     */
    package okhttp3.testing
    
    @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
    @Retention(AnnotationRetention.RUNTIME)
    /**
     * Annotation marking a test as flaky, and requires extra logging and linking against
     * a known github issue.  This does not ignore the failure.
     */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 902 bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/body-updates.md

    Para distinguir entre los modelos con todos los valores opcionales para **actualizaciones** y modelos con valores requeridos para **creación**, puedes utilizar las ideas descritas en [Modelos Extra](extra-models.md){.internal-link target=_blank}.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/simple-oauth2.md

        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info
    
    For a more complete explanation of `**user_dict` check back in [the documentation for **Extra Models**](../extra-models.md#about-user-in-dict){.internal-link target=_blank}.
    
    ///
    
    ## Return the token { #return-the-token }
    
    The response of the `token` endpoint must be a JSON object.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/security/simple-oauth2.md

        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info | Información
    
    Para una explicación más completa de `**user_dict` revisa en [la documentación para **Extra Models**](../extra-models.md#about-user-in-dict){.internal-link target=_blank}.
    
    ///
    
    ## Devolver el token { #return-the-token }
    
    El response del endpoint `token` debe ser un objeto JSON.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top