- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for items (0.13 sec)
-
docs/pt/docs/tutorial/body-nested-models.md
E que o Python tem um tipo de dados especial para conjuntos de itens únicos, o `set`. Então podemos importar `Set` e declarar `tags` como um `set` de `str`s: ```Python hl_lines="1 14" {!../../../docs_src/body_nested_models/tutorial003.py!} ``` Com isso, mesmo que você receba uma requisição contendo dados duplicados, ela será convertida em um conjunto de itens exclusivos.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.4K bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
``` === "Python 3.8+" ```Python hl_lines="9 14 20 23 27" {!> ../../../docs_src/body_nested_models/tutorial007.py!} ``` !!! info Beachten Sie, wie `Offer` eine Liste von `Item`s hat, von denen jedes seinerseits eine optionale Liste von `Image`s hat. ## Bodys aus reinen Listen
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
=== "Python 3.8+" ```Python hl_lines="9 14 20 23 27" {!> ../../../docs_src/body_nested_models/tutorial007.py!} ``` !!! info "Информация" Заметьте, что у объекта `Offer` есть список объектов `Item`, которые, в свою очередь, могут содержать необязательный список объектов `Image` ## Тела с чистыми списками элементов
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.9K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
``` With this, even if you receive a request with duplicate data, it will be converted to a set of unique items. And whenever you output that data, even if the source had duplicates, it will be output as a set of unique items. And it will be annotated / documented accordingly too. ## Nested Models Each attribute of a Pydantic model has a type.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-nested-models.md
## 깊게 중첩된 모델 단독으로 깊게 중첩된 모델을 정의할 수 있습니다: ```Python hl_lines="9 14 20 23 27" {!../../../docs_src/body_nested_models/tutorial007.py!} ``` !!! info "정보" `Offer`가 선택사항 `Image` 리스트를 차례로 갖는 `Item` 리스트를 어떻게 가지고 있는지 주목하세요 ## 순수 리스트의 본문 예상되는 JSON 본문의 최상위 값이 JSON `array`(파이썬 `list`)면, Pydantic 모델에서와 마찬가지로 함수의 매개변수에서 타입을 선언할 수 있습니다: ```Python images: List[Image] ``` 이를 아래처럼:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-nested-models.md
``` === "Python 3.8+" ```Python hl_lines="9 14 20 23 27" {!> ../../../docs_src/body_nested_models/tutorial007.py!} ``` !!! info 请注意 `Offer` 拥有一组 `Item` 而反过来 `Item` 又是一个可选的 `Image` 列表是如何发生的。 ## 纯列表请求体 如果你期望的 JSON 请求体的最外层是一个 JSON `array`(即 Python `list`),则可以在路径操作函数的参数中声明此类型,就像声明 Pydantic 模型一样: ```Python images: List[Image] ``` 例如:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-nested-models.md
## 深くネストされたモデル 深くネストされた任意のモデルを定義することができます: ```Python hl_lines="9 14 20 23 27" {!../../../docs_src/body_nested_models/tutorial007.py!} ``` !!! info "情報" `Offer`は`Item`のリストであり、オプションの`Image`のリストを持っていることに注目してください。 ## 純粋なリストのボディ 期待するJSONボディのトップレベルの値がJSON`array`(Pythonの`list`)であれば、Pydanticモデルと同じように、関数のパラメータで型を宣言することができます: ```Python images: List[Image] ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/em/docs/tutorial/body-nested-models.md
``` === "🐍 3️⃣.1️⃣0️⃣ & 🔛" ```Python hl_lines="7 12 18 21 25" {!> ../../../docs_src/body_nested_models/tutorial007_py310.py!} ``` !!! info 👀 ❔ `Offer` ✔️ 📇 `Item`Ⓜ, ❔ 🔄 ✔️ 📦 📇 `Image`Ⓜ ## 💪 😁 📇 🚥 🔝 🎚 💲 🎻 💪 👆 ⌛ 🎻 `array` (🐍 `list`), 👆 💪 📣 🆎 🔢 🔢, 🎏 Pydantic 🏷: ```Python images: List[Image] ``` ⚖️ 🐍 3️⃣.9️⃣ & 🔛:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.2K bytes - Viewed (0)