Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Pschera (0.11 sec)

  1. docs/zh/docs/advanced/additional-responses.md

    **FastAPI**将采用该模型,生成其`JSON Schema`并将其包含在`OpenAPI`中的正确位置。
    
    例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写:
    ```Python hl_lines="18  22"
    {!../../../docs_src/additional_responses/tutorial001.py!}
    ```
    
    
    !!! Note
    	请记住,您必须直接返回 `JSONResponse` 。
    
    !!! Info
    	`model` 密钥不是OpenAPI的一部分。
    	**FastAPI**将从那里获取`Pydantic`模型,生成` JSON Schema` ,并将其放在正确的位置。
    	- 正确的位置是:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 09 15:53:39 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. docs/fr/docs/advanced/additional-responses.md

        Le bon endroit est :
    
        * Dans la clé `content`, qui a pour valeur un autre objet JSON (`dict`) qui contient :
            * Une clé avec le type de support, par ex. `application/json`, qui contient comme valeur un autre objet JSON, qui contient :
                * Une clé `schema`, qui a pour valeur le schéma JSON du modèle, voici le bon endroit.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/additional-responses.md

    !!! info
         `model` 🔑 🚫 🍕 🗄.
    
        **FastAPI** 🔜 ✊ Pydantic 🏷 ⚪️➡️ 📤, 🏗 `JSON Schema`, & 🚮 ⚫️ ☑ 🥉.
    
        ☑ 🥉:
    
        * 🔑 `content`, 👈 ✔️ 💲 ➕1️⃣ 🎻 🎚 (`dict`) 👈 🔌:
            * 🔑 ⏮️ 📻 🆎, ✅ `application/json`, 👈 🔌 💲 ➕1️⃣ 🎻 🎚, 👈 🔌:
                * 🔑 `schema`, 👈 ✔️ 💲 🎻 🔗 ⚪️➡️ 🏷, 📥 ☑ 🥉.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/additional-responses.md

        The correct place is:
    
        * In the key `content`, that has as value another JSON object (`dict`) that contains:
            * A key with the media type, e.g. `application/json`, that contains as value another JSON object, that contains:
                * A key `schema`, that has as the value the JSON Schema from the model, here's the correct place.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/additional-responses.md

        Die richtige Stelle ist:
    
        * Im Schlüssel `content`, der als Wert ein weiteres JSON-Objekt (`dict`) hat, welches Folgendes enthält:
            * Ein Schlüssel mit dem Medientyp, z. B. `application/json`, der als Wert ein weiteres JSON-Objekt hat, welches Folgendes enthält:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:19:26 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top