Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Fields (0.17 sec)

  1. docs/ko/docs/tutorial/schema-extra-example.md

        그 전에는, 하나의 예제만 가능한 `example` 키워드만 지원했습니다. 이는 아직 OpenAPI 3.1.0에서 지원하지만, 지원이 종료될 것이며 JSON 스키마 표준에 포함되지 않습니다. 그렇기에 `example`을 `examples`으로 이전하는 것을 추천합니다. 🤓
    
        이 문서 끝에 더 많은 읽을거리가 있습니다.
    
    ## `Field` 추가 인자
    
    Pydantic 모델과 같이 `Field()`를 사용할 때 추가적인 `examples`를 선언할 수 있습니다:
    
    === "Python 3.10+"
    
        ```Python hl_lines="2  8-11"
        {!> ../../../docs_src/schema_extra_example/tutorial002_py310.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Feb 09 12:35:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/schema-extra-example.md

        Por exemplo, você pode usar isso para adicionar metadados para uma interface de usuário de front-end, etc.
    
    ## `Field` de argumentos adicionais
    
    Ao usar `Field ()` com modelos Pydantic, você também pode declarar informações extras para o **JSON Schema** passando quaisquer outros argumentos arbitrários para a função.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/schema-extra-example.md

    ```
    
    その追加情報はそのまま出力され、JSON Schemaに追加されます。
    
    ## `Field`の追加引数
    
    後述する`Field`、`Path`、`Query`、`Body`などでは、任意の引数を関数に渡すことでJSON Schemaの追加情報を宣言することもできます:
    
    ```Python hl_lines="4 10 11 12 13"
    {!../../../docs_src/schema_extra_example/tutorial002.py!}
    ```
    
    !!! warning "注意"
        これらの追加引数が渡されても、文書化のためのバリデーションは追加されず、注釈だけが追加されることを覚えておいてください。
    
    ## `Body`の追加引数
    
    追加情報を`Field`に渡すのと同じように、`Path`、`Query`、`Body`などでも同じことができます。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/schema-extra-example.md

        Например, вы можете использовать это для добавления дополнительной информации для пользовательского интерфейса в вашем веб-приложении и т.д.
    
    ## Дополнительные аргументы поля `Field`
    
    При использовании `Field()` с моделями Pydantic, вы также можете объявлять дополнительную информацию для **JSON Schema**, передавая любые другие произвольные аргументы в функцию.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/schema-extra-example.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="15-23"
        {!> ../../../docs_src/schema_extra_example/tutorial001.py!}
        ```
    
    这些额外的信息将按原样添加到输出的JSON模式中。
    
    ## `Field` 的附加参数
    
    在 `Field`, `Path`, `Query`, `Body` 和其他你之后将会看到的工厂函数,你可以为JSON 模式声明额外信息,你也可以通过给工厂函数传递其他的任意参数来给JSON 模式声明额外信息,比如增加 `example`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="2  8-11"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/schema-extra-example.md

    ### 🖼 🩺 🎚
    
    ⏮️ `examples` 🚮 `Body()` `/docs` 🔜 👀 💖:
    
    <img src="/img/tutorial/body-fields/image02.png">
    
    ## 📡 ℹ
    
    !!! warning
        👉 📶 📡 ℹ 🔃 🐩 **🎻 🔗** &amp; **🗄**.
    
        🚥 💭 🔛 ⏪ 👷 👆, 👈 💪 🥃, &amp; 👆 🎲 🚫 💪 👉 ℹ, 💭 🆓 🚶 👫.
    
    🕐❔ 👆 🚮 🖼 🔘 Pydantic 🏷, ⚙️ `schema_extra` ⚖️ `Field(example="something")` 👈 🖼 🚮 **🎻 🔗** 👈 Pydantic 🏷.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/schema-extra-example.md

    And then the new OpenAPI 3.1.0 was based on the latest version (JSON Schema 2020-12) that included this new field `examples`.
    
    And now this new `examples` field takes precedence over the old single (and custom) `example` field, that is now deprecated.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/schema-extra-example.md

        Mehr erfahren Sie am Ende dieser Seite.
    
    ## Zusätzliche Argumente für `Field`
    
    Wenn Sie `Field()` mit Pydantic-Modellen verwenden, können Sie ebenfalls zusätzliche `examples` deklarieren:
    
    === "Python 3.10+"
    
        ```Python hl_lines="2  8-11"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:19:53 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top