Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for fieldset (0.21 sec)

  1. tests/test_compat.py

        _get_model_config,
        is_bytes_sequence_annotation,
        is_uploadfile_sequence_annotation,
    )
    from fastapi.testclient import TestClient
    from pydantic import BaseConfig, BaseModel, ConfigDict
    from pydantic.fields import FieldInfo
    
    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    @needs_pydanticv2
    def test_model_field_default_required():
        # For coverage
        field_info = FieldInfo(annotation=str)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/query-params-str-validations.md

    !!! tip
        Pydantic, ❔ ⚫️❔ 🏋️ 🌐 💽 🔬 &amp; 🛠️ FastAPI, ✔️ 🎁 🎭 🕐❔ 👆 ⚙️ `Optional` ⚖️ `Union[Something, None]` 🍵 🔢 💲, 👆 💪 ✍ 🌅 🔃 ⚫️ Pydantic 🩺 🔃 <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">✔ 📦 🏑</a>.
    
    ### ⚙️ Pydantic `Required` ↩️ ❕ (`...`)
    
    🚥 👆 💭 😬 ⚙️ `...`, 👆 💪 🗄 &amp; ⚙️ `Required` ⚪️➡️ Pydantic:
    
    ```Python hl_lines="2  8"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  3. fastapi/params.py

    import warnings
    from enum import Enum
    from typing import Any, Callable, Dict, List, Optional, Sequence, Union
    
    from fastapi.openapi.models import Example
    from pydantic.fields import FieldInfo
    from typing_extensions import Annotated, deprecated
    
    from ._compat import PYDANTIC_V2, PYDANTIC_VERSION, Undefined
    
    _Unset: Any = Undefined
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  4. docs/en/docs/alternatives.md

    It can't handle nested models very well. So, if the JSON body in the request is a JSON object that has inner fields that in turn are nested JSON objects, it cannot be properly documented and validated.
    
    !!! check "Inspired **FastAPI** to"
        Use Python types to have great editor support.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  5. docs/it/docs/index.md

    **Spoiler alert**: il tutorial - Guida Utente include:
    
    * Dichiarazione di **parameters** da altri posti diversi come: **headers**, **cookies**, **form fields** e **files**.
    * Come stabilire **vincoli di validazione** come `maximum_length` o `regex`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/body-fields.md

    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an.py!}
        ```
    
    === "Python 3.10+ Annotated가 없는 경우"
    
        !!! tip "팁"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/body-fields.md

    まず、以下のようにインポートします:
    
    ```Python hl_lines="4"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    !!! warning "注意"
        `Field`は他の全てのもの(`Query`、`Path`、`Body`など)とは違い、`fastapi`からではなく、`pydantic`から直接インポートされていることに注意してください。
    
    ## モデルの属性の宣言
    
    以下のように`Field`をモデルの属性として使用することができます:
    
    ```Python hl_lines="11 12 13 14"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    `Field`は`Query`や`Path`、`Body`と同じように動作し、全く同様のパラメータなどを持ちます。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:33:28 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/request-forms-and-files.md

        ```
    
    The files and form fields will be uploaded as form data and you will receive the files and form fields.
    
    And you can declare some of the files as `bytes` and some as `UploadFile`.
    
    !!! warning
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/metadata.md

    | `terms_of_service` | `str` | A URL to the Terms of Service for the API. If provided, this has to be a URL. |
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/schema-extra-example.md

    ```Python hl_lines="21 22 23 24 25 26"
    {!../../../docs_src/schema_extra_example/tutorial003.py!}
    ```
    
    ## ドキュメントのUIの例
    
    上記のいずれの方法でも、`/docs`の中では以下のようになります:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/body-fields/image01.png">
    
    ## 技術詳細
    
    `example` と `examples`について...
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top