- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 566 for Model2 (0.19 sec)
-
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) -
fastapi/dependencies/models.py
Sebastián Ramírez <******@****.***> 1725135570 +0200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 31 20:19:30 UTC 2024 - 1.5K bytes - Viewed (0) -
fastapi/openapi/models.py
Paul <******@****.***> 1713480573 -0400
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 22:49:33 UTC 2024 - 15K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 30.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-updates.md
* Recuperar os dados armazenados. * Colocar esses dados em um modelo do Pydantic. * Gerar um `dict` sem valores padrão a partir do modelo de entrada (usando `exclude_unset`). * Dessa forma, você pode atualizar apenas os valores definidos pelo usuário, em vez de substituir os valores já armazenados com valores padrão em seu modelo.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 14 09:16:06 UTC 2024 - 6K 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/zh/docs/tutorial/extra-models.md
Sebastián Ramírez <******@****.***> 1728247014 +0200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.6K bytes - Viewed (0) -
docs/fr/docs/advanced/additional-responses.md
**FastAPI** prendra ce modèle, générera son schéma JSON et l'inclura au bon endroit dans OpenAPI. Par exemple, pour déclarer une autre réponse avec un code HTTP `404` et un modèle Pydantic `Message`, vous pouvez écrire : ```Python hl_lines="18 22" {!../../docs_src/additional_responses/tutorial001.py!} ``` /// note | "Remarque" Gardez à l'esprit que vous devez renvoyer directement `JSONResponse`. /// /// info
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.6K bytes - Viewed (0) -
docs/de/docs/tutorial/encoder.md
Genauso würde die Datenbank kein Pydantic-Modell (ein Objekt mit Attributen) akzeptieren, sondern nur ein `dict`. Sie können für diese Fälle `jsonable_encoder` verwenden. Es nimmt ein Objekt entgegen, wie etwa ein Pydantic-Modell, und gibt eine JSON-kompatible Version zurück: //// tab | Python 3.10+ ```Python hl_lines="4 21"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.9K bytes - Viewed (0) -
model.go
package gorm import "time" // Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt // It may be embedded into your model or you may build your own model without it // // type User struct { // gorm.Model // } type Model struct { ID uint `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt DeletedAt `gorm:"index"`
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Feb 18 01:06:43 UTC 2023 - 396 bytes - Viewed (0)