Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for json (0.15 sec)

  1. docs/de/docs/tutorial/body-nested-models.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/body_nested_models/tutorial006.py!}
        ```
    
    Das wird einen JSON-Body erwarten (konvertieren, validieren, dokumentieren), wie:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": [
            "rock",
            "metal",
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/body-nested-models.md

        ```Python hl_lines="20"
        {!> ../../../docs_src/body_nested_models/tutorial006.py!}
        ```
    
    Такая реализация будет ожидать (конвертировать, валидировать, документировать и т.д) JSON-содержимое в следующем формате:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": [
            "rock",
            "metal",
            "bar"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/body-nested-models.md

    ## Atributos como listas de submodelos
    
    Você também pode usar modelos Pydantic como subtipos de `list`, `set`, etc:
    
    ```Python hl_lines="20"
    {!../../../docs_src/body_nested_models/tutorial006.py!}
    ```
    
    Isso vai esperar(converter, validar, documentar, etc) um corpo JSON tal qual:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/body-nested-models.md

    {!../../../docs_src/body_nested_models/tutorial005.py!}
    ```
    
    이 문자열이 유효한 URL인지 검사하고 JSON 스키마/OpenAPI로 문서화 됩니다.
    
    ## 서브모델 리스트를 갖는 어트리뷰트
    
    `list`, `set` 등의 서브타입으로 Pydantic 모델을 사용할 수도 있습니다:
    
    ```Python hl_lines="20"
    {!../../../docs_src/body_nested_models/tutorial006.py!}
    ```
    
    아래와 같은 JSON 본문으로 예상(변환, 검증, 문서화 등을)합니다:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/body-nested-models.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/body_nested_models/tutorial006.py!}
        ```
    
    This will expect (convert, validate, document, etc.) a JSON body like:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": [
            "rock",
            "metal",
            "bar"
        ],
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/body-nested-models.md

    {!../../../docs_src/body_nested_models/tutorial005.py!}
    ```
    
    文字列は有効なURLであることが確認され、そのようにJSONスキーマ・OpenAPIで文書化されます。
    
    ## サブモデルのリストを持つ属性
    
    Pydanticモデルを`list`や`set`などのサブタイプとして使用することもできます:
    
    ```Python hl_lines="20"
    {!../../../docs_src/body_nested_models/tutorial006.py!}
    ```
    
    これは、次のようなJSONボディを期待します(変換、検証、ドキュメントなど):
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/body-nested-models.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/body_nested_models/tutorial006.py!}
        ```
    
    这将期望(转换,校验,记录文档等)下面这样的 JSON 请求体:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": [
            "rock",
            "metal",
            "bar"
        ],
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/body-nested-models.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/body_nested_models/tutorial004_py310.py!}
        ```
    
    👉 🔜 ⛓ 👈 **FastAPI** 🔜 ⌛ 💪 🎏:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": ["rock", "metal", "bar"],
        "image": {
            "url": "http://example.com/baz.jpg",
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
Back to top