- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 850 for pydantic (0.11 sec)
-
tests/test_tutorial/test_request_forms/test_tutorial001_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/de/docs/python-types.md
## Pydantic Modelle <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> ist eine Python-Bibliothek für die Validierung von Daten. Sie deklarieren die „Form“ der Daten als Klassen mit Attributen. Und jedes Attribut hat einen Typ.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.1K bytes - Viewed (0) -
tests/test_schema_extra_examples.py
def test_openapi_schema(): """ Test that example overrides work: * pydantic model schema_extra is included * Body(example={}) overrides schema_extra in pydantic model * Body(examples{}) overrides Body(example={}) and schema_extra in pydantic model """ app = create_app() client = TestClient(app) response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 37.7K bytes - Viewed (0) -
tests/test_tutorial/test_handling_errors/test_tutorial004.py
assert response.status_code == 400, response.text # TODO: remove when deprecating Pydantic v1 assert ( # TODO: remove when deprecating Pydantic v1 "path -> item_id" in response.text or "'loc': ('path', 'item_id')" in response.text ) assert ( # TODO: remove when deprecating Pydantic v1 "value is not a valid integer" in response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 3.7K bytes - Viewed (0) -
docs/em/docs/tutorial/schema-extra-example.md
# 📣 📨 🖼 💽 👆 💪 📣 🖼 💽 👆 📱 💪 📨. 📥 📚 🌌 ⚫️. ## Pydantic `schema_extra` 👆 💪 📣 `example` Pydantic 🏷 ⚙️ `Config` & `schema_extra`, 🔬 <a href="https://docs.pydantic.dev/latest/concepts/json_schema/#customizing-json-schema" class="external-link" target="_blank">Pydantic 🩺: 🔗 🛃</a>: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="15-23" {!> ../../docs_src/schema_extra_example/tutorial001.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
tests/test_tutorial/test_cookie_param_models/test_tutorial002.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 8.6K bytes - Viewed (0) -
docs/em/docs/tutorial/extra-data-types.md
* 📨 & 📨 🔜 😥 `str`. * 🏗 🔗 🔜 ✔ 👈 ⚫️ `str` ⏮️ `binary` "📁". * `Decimal`: * 🐩 🐍 `Decimal`. * 📨 & 📨, 🍵 🎏 `float`. * 👆 💪 ✅ 🌐 ☑ Pydantic 📊 🆎 📥: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic 📊 🆎</a>. ## 🖼 📥 🖼 *➡ 🛠️* ⏮️ 🔢 ⚙️ 🔛 🆎. //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="1 3 12-16"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/encoder.md
Точно так же эта база данных не может принять Pydantic модель (объект с атрибутами), а только `dict`. Для этого можно использовать функцию `jsonable_encoder`. Она принимает объект, например, модель Pydantic, и возвращает его версию, совместимую с JSON: //// 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 - 2.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/extra-data-types.md
* `Decimal`: * Встроенный в Python `Decimal`. * В запросах и ответах обрабатывается так же, как и `float`. * Вы можете проверить все допустимые типы данных pydantic здесь: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Типы данных Pydantic</a>. ## Пример Вот пример *операции пути* с параметрами, который демонстрирует некоторые из вышеперечисленных типов. //// tab | Python 3.8 и выше
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.7K bytes - Viewed (0) -
tests/test_forms_single_model.py
from typing import List, Optional from dirty_equals import IsDict from fastapi import FastAPI, Form from fastapi.testclient import TestClient from pydantic import BaseModel, Field from typing_extensions import Annotated app = FastAPI() class FormModel(BaseModel): username: str lastname: str age: Optional[int] = None tags: List[str] = ["foo", "bar"] alias_with: str = Field(alias="with", default="nothing")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 13 09:51:00 UTC 2024 - 3.5K bytes - Viewed (0)