- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 157 for model_b (0.1 sec)
-
docs/ja/docs/tutorial/response-model.md
## ドキュメントを見る 自動ドキュメントを見ると、入力モデルと出力モデルがそれぞれ独自のJSON Schemaを持っていることが確認できます。 <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png"> そして、両方のモデルは、対話型のAPIドキュメントに使用されます: <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png"> ## レスポンスモデルのエンコーディングパラメータ レスポンスモデルにはデフォルト値を設定することができます: ```Python hl_lines="11 13 14"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/pt/docs/how-to/separate-openapi-schemas.md
Inclusive, em alguns casos, ele terá até **dois JSON Schemas** no OpenAPI para o mesmo modelo Pydantic, para entrada e saída, dependendo se eles possuem **valores padrão**. Vamos ver como isso funciona e como alterar se for necessário. ## Modelos Pydantic para Entrada e Saída Digamos que você tenha um modelo Pydantic com valores padrão, como este: //// tab | Python 3.10+ ```Python hl_lines="7"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 24 18:52:36 UTC 2024 - 6.8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/plugin/ReportingConverter.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.model.plugin; import org.apache.maven.model.Model; import org.apache.maven.model.building.ModelBuildingRequest; import org.apache.maven.model.building.ModelProblemCollector; /** * Handles conversion of the <code><reporting></code> section into the configuration of Maven Site Plugin 3.x,
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
``` //// ## Универсальная поддержка редактора И вы получаете поддержку редактора везде. Даже для элементов внутри списков: <img src="/img/tutorial/body-nested-models/image01.png"> Вы не могли бы получить такую поддержку редактора, если бы работали напрямую с `dict`, а не с моделями Pydantic.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-nested-models.md
```Python hl_lines="15" {!../../docs_src/body_nested_models/tutorial008.py!} ``` ## 어디서나 편집기 지원 그리고 어디서나 편집기 지원을 받을수 있습니다. 리스트 내부 항목의 경우에도: <img src="/img/tutorial/body-nested-models/image01.png"> Pydantic 모델 대신에 `dict`를 직접 사용하여 작업할 경우, 이러한 편집기 지원을 받을수 없습니다. 하지만 수신한 딕셔너리가 자동으로 변환되고 출력도 자동으로 JSON으로 변환되므로 걱정할 필요는 없습니다. ## 단독 `dict`의 본문 일부 타입의 키와 다른 타입의 값을 사용하여 `dict`로 본문을 선언할 수 있습니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
## Nested Models Each attribute of a Pydantic model has a type. But that type can itself be another Pydantic model. So, you can declare deeply nested JSON "objects" with specific attribute names, types and validations. All that, arbitrarily nested. ### Define a submodel For example, we can define an `Image` model: //// tab | Python 3.10+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.4K bytes - Viewed (0) -
docs/en/docs/tutorial/request-form-models.md
## Check the Docs You can verify it in the docs UI at `/docs`: <div class="screenshot"> <img src="/img/tutorial/request-form-models/image01.png"> </div> ## Forbid Extra Form Fields In some special use cases (probably not very common), you might want to **restrict** the form fields to only those declared in the Pydantic model. And **forbid** any **extra** fields.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-nested-models.md
```Python hl_lines="15" {!> ../../docs_src/body_nested_models/tutorial008.py!} ``` //// ## 无处不在的编辑器支持 你可以随处获得编辑器支持。 即使是列表中的元素: <img src="https://fastapi.tiangolo.com/img/tutorial/body-nested-models/image01.png"> 如果你直接使用 `dict` 而不是 Pydantic 模型,那你将无法获得这种编辑器支持。 但是你根本不必担心这两者,传入的字典会自动被转换,你的输出也会自动被转换为 JSON。 ## 任意 `dict` 构成的请求体 你也可以将请求体声明为使用某类型的键和其他类型值的 `dict`。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/em/docs/tutorial/body-nested-models.md
```Python hl_lines="13" {!> ../../docs_src/body_nested_models/tutorial008_py39.py!} ``` //// ## 👨🎨 🐕🦺 🌐 & 👆 🤚 👨🎨 🐕🦺 🌐. 🏬 🔘 📇: <img src="/img/tutorial/body-nested-models/image01.png"> 👆 🚫 🚫 🤚 👉 😇 👨🎨 🐕🦺 🚥 👆 👷 🔗 ⏮️ `dict` ↩️ Pydantic 🏷. ✋️ 👆 🚫 ✔️ 😟 🔃 👫 👯♂️, 📨 #️⃣ 🗜 🔁 & 👆 🔢 🗜 🔁 🎻 💁♂️. ## 💪 ❌ `dict`Ⓜ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/en/docs/tutorial/cookie-param-models.md
# Cookie Parameter Models If you have a group of **cookies** that are related, you can create a **Pydantic model** to declare them. 🍪 This would allow you to **re-use the model** in **multiple places** and also to declare validations and metadata for all the parameters at once. 😎 /// note This is supported since FastAPI version `0.115.0`. 🤓 /// /// tip This same technique applies to `Query`, `Cookie`, and `Header`. 😎 ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K bytes - Viewed (0)