]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update links to Pydantic docs to point to new website (#11328)
authorAlejandra <90076947+alejsdev@users.noreply.github.com>
Fri, 22 Mar 2024 01:42:11 +0000 (20:42 -0500)
committerGitHub <noreply@github.com>
Fri, 22 Mar 2024 01:42:11 +0000 (20:42 -0500)
137 files changed:
README.md
docs/az/docs/index.md
docs/bn/docs/index.md
docs/de/docs/features.md
docs/de/docs/tutorial/body-nested-models.md
docs/de/docs/tutorial/body.md
docs/em/docs/advanced/dataclasses.md
docs/em/docs/advanced/openapi-callbacks.md
docs/em/docs/advanced/settings.md
docs/em/docs/alternatives.md
docs/em/docs/features.md
docs/em/docs/history-design-future.md
docs/em/docs/index.md
docs/em/docs/python-types.md
docs/em/docs/tutorial/body-nested-models.md
docs/em/docs/tutorial/body.md
docs/em/docs/tutorial/extra-data-types.md
docs/em/docs/tutorial/extra-models.md
docs/em/docs/tutorial/handling-errors.md
docs/em/docs/tutorial/path-params.md
docs/em/docs/tutorial/query-params-str-validations.md
docs/em/docs/tutorial/response-model.md
docs/em/docs/tutorial/schema-extra-example.md
docs/em/docs/tutorial/sql-databases.md
docs/en/docs/advanced/dataclasses.md
docs/en/docs/advanced/openapi-callbacks.md
docs/en/docs/alternatives.md
docs/en/docs/features.md
docs/en/docs/history-design-future.md
docs/en/docs/index.md
docs/en/docs/python-types.md
docs/en/docs/release-notes.md
docs/en/docs/tutorial/body-nested-models.md
docs/en/docs/tutorial/body.md
docs/en/docs/tutorial/extra-data-types.md
docs/en/docs/tutorial/extra-models.md
docs/en/docs/tutorial/handling-errors.md
docs/en/docs/tutorial/path-params.md
docs/en/docs/tutorial/query-params-str-validations.md
docs/en/docs/tutorial/response-model.md
docs/en/docs/tutorial/sql-databases.md
docs/es/docs/features.md
docs/es/docs/index.md
docs/es/docs/python-types.md
docs/es/docs/tutorial/path-params.md
docs/fa/docs/features.md
docs/fa/docs/index.md
docs/fr/docs/alternatives.md
docs/fr/docs/features.md
docs/fr/docs/history-design-future.md
docs/fr/docs/index.md
docs/fr/docs/python-types.md
docs/fr/docs/tutorial/body.md
docs/fr/docs/tutorial/path-params.md
docs/he/docs/index.md
docs/hu/docs/index.md
docs/it/docs/index.md
docs/ja/docs/alternatives.md
docs/ja/docs/features.md
docs/ja/docs/history-design-future.md
docs/ja/docs/index.md
docs/ja/docs/python-types.md
docs/ja/docs/tutorial/body-nested-models.md
docs/ja/docs/tutorial/body.md
docs/ja/docs/tutorial/extra-data-types.md
docs/ja/docs/tutorial/handling-errors.md
docs/ja/docs/tutorial/path-params.md
docs/ja/docs/tutorial/response-model.md
docs/ja/docs/tutorial/schema-extra-example.md
docs/ko/docs/features.md
docs/ko/docs/index.md
docs/ko/docs/python-types.md
docs/ko/docs/tutorial/body-nested-models.md
docs/ko/docs/tutorial/body.md
docs/ko/docs/tutorial/path-params.md
docs/ko/docs/tutorial/response-model.md
docs/pl/docs/features.md
docs/pl/docs/index.md
docs/pt/docs/alternatives.md
docs/pt/docs/features.md
docs/pt/docs/history-design-future.md
docs/pt/docs/index.md
docs/pt/docs/python-types.md
docs/pt/docs/tutorial/body-nested-models.md
docs/pt/docs/tutorial/body.md
docs/pt/docs/tutorial/extra-data-types.md
docs/pt/docs/tutorial/extra-models.md
docs/pt/docs/tutorial/handling-errors.md
docs/pt/docs/tutorial/path-params.md
docs/pt/docs/tutorial/schema-extra-example.md
docs/ru/docs/alternatives.md
docs/ru/docs/features.md
docs/ru/docs/history-design-future.md
docs/ru/docs/index.md
docs/ru/docs/python-types.md
docs/ru/docs/tutorial/body-nested-models.md
docs/ru/docs/tutorial/body.md
docs/ru/docs/tutorial/extra-data-types.md
docs/ru/docs/tutorial/extra-models.md
docs/ru/docs/tutorial/handling-errors.md
docs/ru/docs/tutorial/path-params.md
docs/ru/docs/tutorial/query-params-str-validations.md
docs/ru/docs/tutorial/response-model.md
docs/ru/docs/tutorial/schema-extra-example.md
docs/tr/docs/alternatives.md
docs/tr/docs/features.md
docs/tr/docs/history-design-future.md
docs/tr/docs/index.md
docs/tr/docs/python-types.md
docs/tr/docs/tutorial/path-params.md
docs/uk/docs/alternatives.md
docs/uk/docs/index.md
docs/uk/docs/python-types.md
docs/uk/docs/tutorial/body.md
docs/uk/docs/tutorial/extra-data-types.md
docs/vi/docs/features.md
docs/vi/docs/index.md
docs/vi/docs/python-types.md
docs/yo/docs/index.md
docs/zh-hant/docs/index.md
docs/zh/docs/advanced/settings.md
docs/zh/docs/features.md
docs/zh/docs/history-design-future.md
docs/zh/docs/index.md
docs/zh/docs/python-types.md
docs/zh/docs/tutorial/body-nested-models.md
docs/zh/docs/tutorial/body.md
docs/zh/docs/tutorial/extra-data-types.md
docs/zh/docs/tutorial/extra-models.md
docs/zh/docs/tutorial/handling-errors.md
docs/zh/docs/tutorial/path-params.md
docs/zh/docs/tutorial/query-params-str-validations.md
docs/zh/docs/tutorial/response-model.md
docs/zh/docs/tutorial/schema-extra-example.md
docs/zh/docs/tutorial/sql-databases.md
docs_src/custom_response/tutorial006c.py
tests/test_tutorial/test_custom_response/test_tutorial006c.py

index a60d8775c62d1028ffd418790421210f386d102d..0c05687ce51d1fe0883d73c824dd650d71869c77 100644 (file)
--- a/README.md
+++ b/README.md
@@ -126,7 +126,7 @@ Python 3.8+
 FastAPI stands on the shoulders of giants:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> for the web parts.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> for the data parts.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> for the data parts.
 
 ## Installation
 
index fb82bea1ba0100e6dcf5380b5c0c6322120a5106..33bcc15568f179f5fad867c13e659ef75c09218d 100644 (file)
@@ -120,7 +120,7 @@ Python 3.8+
 FastAPI nəhənglərin çiyinlərində dayanır:
 
 * Web tərəfi üçün <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
-* Data tərəfi üçün <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>.
+* Data tərəfi üçün <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>.
 
 ## Quraşdırma
 
index 28ef5d6d106fe62bcd56f770e920c669ced16e21..688f3f95ac25fd25c46988ba0cdd48f204536904 100644 (file)
@@ -112,7 +112,7 @@ Python 3.7+
 FastAPI কিছু দানবেদের কাঁধে দাঁড়িয়ে আছে:
 
 - <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> ওয়েব অংশের জন্য.
-- <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> ডেটা অংশগুলির জন্য.
+- <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> ডেটা অংশগুলির জন্য.
 
 ## ইনস্টলেশন প্রক্রিয়া
 
index 7b0e0587cb13ca8a6ddb91449c0bbee1c32ab079..fee4b158edcd299b432b8295c166cdea8619c96f 100644 (file)
@@ -177,7 +177,7 @@ Mit **FastAPI** bekommen Sie viele von **Starlette**'s Funktionen (da FastAPI nu
 
 ## Pydantic's Merkmale
 
-**FastAPI** ist vollkommen kompatibel (und basiert auf) <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Das bedeutet, auch jeder zusätzliche Pydantic Quellcode funktioniert.
+**FastAPI** ist vollkommen kompatibel (und basiert auf) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Das bedeutet, auch jeder zusätzliche Pydantic Quellcode funktioniert.
 
 Verfügbar sind ebenso externe auf Pydantic basierende Bibliotheken, wie <abbr title="Object-Relational Mapper (Abbildung von Objekten auf relationale Strukturen)">ORM</abbr>s, <abbr title="Object-Document Mapper (Abbildung von Objekten auf nicht-relationale Strukturen)">ODM</abbr>s für Datenbanken.
 
index 976f3f924e3686bb7ca7f1c95e4cc2ddf7fcde35..a7a15a6c241c767dd717548e0409531cb9c0148b 100644 (file)
@@ -192,7 +192,7 @@ Wiederum, nur mit dieser Deklaration erhalten Sie von **FastAPI**:
 
 Abgesehen von normalen einfachen Typen, wie `str`, `int`, `float`, usw. können Sie komplexere einfache Typen verwenden, die von `str` erben.
 
-Um alle Optionen kennenzulernen, die Sie haben, schauen Sie sich <a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">Pydantics Typübersicht</a> an. Sie werden im nächsten Kapitel ein paar Beispiele kennenlernen.
+Um alle Optionen kennenzulernen, die Sie haben, schauen Sie sich <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantics Typübersicht</a> an. Sie werden im nächsten Kapitel ein paar Beispiele kennenlernen.
 
 Da wir zum Beispiel im `Image`-Modell ein Feld `url` haben, können wir deklarieren, dass das eine Instanz von Pydantics `HttpUrl` sein soll, anstelle eines `str`:
 
index 97215a780a6947781bfb5eb6b6a92b37545bd8e2..6611cb51a85350971fe28244611ad157b0b071f5 100644 (file)
@@ -6,7 +6,7 @@ Ein **Request**body sind Daten, die vom Client zu Ihrer API gesendet werden. Ein
 
 Ihre API sendet fast immer einen **Response**body. Aber Clients senden nicht unbedingt immer **Request**bodys (sondern nur Metadaten).
 
-Um einen **Request**body zu deklarieren, verwenden Sie <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>-Modelle mit allen deren Fähigkeiten und Vorzügen.
+Um einen **Request**body zu deklarieren, verwenden Sie <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>-Modelle mit allen deren Fähigkeiten und Vorzügen.
 
 !!! info
     Um Daten zu versenden, sollten Sie eines von: `POST` (meistverwendet), `PUT`, `DELETE` oder `PATCH` verwenden.
index a4c2871062ccbd7a0b3ab42d5d5340c00aea21d1..e8c4b99a23e8d5b6d0c16e15738b4fad45fd6c03 100644 (file)
@@ -8,7 +8,7 @@ FastAPI 🏗 🔛 🔝 **Pydantic**, &amp; 👤 ✔️ 🌏 👆 ❔ ⚙️ Pyda
 {!../../../docs_src/dataclasses/tutorial001.py!}
 ```
 
-👉 🐕‍🦺 👏 **Pydantic**, ⚫️ ✔️ <a href="https://pydantic-docs.helpmanual.io/usage/dataclasses/#use-of-stdlib-dataclasses-with-basemodel" class="external-link" target="_blank">🔗 🐕‍🦺 `dataclasses`</a>.
+👉 🐕‍🦺 👏 **Pydantic**, ⚫️ ✔️ <a href="https://docs.pydantic.dev/latest/concepts/dataclasses/#use-of-stdlib-dataclasses-with-basemodel" class="external-link" target="_blank">🔗 🐕‍🦺 `dataclasses`</a>.
 
 , ⏮️ 📟 🔛 👈 🚫 ⚙️ Pydantic 🎯, FastAPI ⚙️ Pydantic 🗜 📚 🐩 🎻 Pydantic 👍 🍛 🎻.
 
@@ -91,7 +91,7 @@ FastAPI 🏗 🔛 🔝 **Pydantic**, &amp; 👤 ✔️ 🌏 👆 ❔ ⚙️ Pyda
 
 👆 💪 🌀 `dataclasses` ⏮️ 🎏 Pydantic 🏷, 😖 ⚪️➡️ 👫, 🔌 👫 👆 👍 🏷, ♒️.
 
-💡 🌅, ✅ <a href="https://pydantic-docs.helpmanual.io/usage/dataclasses/" class="external-link" target="_blank">Pydantic 🩺 🔃 🎻</a>.
+💡 🌅, ✅ <a href="https://docs.pydantic.dev/latest/concepts/dataclasses/" class="external-link" target="_blank">Pydantic 🩺 🔃 🎻</a>.
 
 ## ⏬
 
index 630b75ed29f0b0131e941435f509493cb06975f6..3355d6071b277758f9e473c43828b523af723c8e 100644 (file)
@@ -36,7 +36,7 @@
 ```
 
 !!! tip
-     `callback_url` 🔢 🔢 ⚙️ Pydantic <a href="https://pydantic-docs.helpmanual.io/usage/types/#urls" class="external-link" target="_blank">📛</a> 🆎.
+     `callback_url` 🔢 🔢 ⚙️ Pydantic <a href="https://docs.pydantic.dev/latest/concepts/types/#urls" class="external-link" target="_blank">📛</a> 🆎.
 
 🕴 🆕 👜 `callbacks=messages_callback_router.routes` ❌ *➡ 🛠️ 👨‍🎨*. 👥 🔜 👀 ⚫️❔ 👈 ⏭.
 
index 2ebe8ffcbed0c0a1cf39b588d6d88043af40452b..c172120235414a9ad2eccbd2cc6530e80e3406eb 100644 (file)
@@ -125,7 +125,7 @@ Hello World from Python
 
 ## Pydantic `Settings`
 
-👐, Pydantic 🚚 👑 🚙 🍵 👫 ⚒ 👟 ⚪️➡️ 🌐 🔢 ⏮️ <a href="https://pydantic-docs.helpmanual.io/usage/settings/" class="external-link" target="_blank">Pydantic: ⚒ 🧾</a>.
+👐, Pydantic 🚚 👑 🚙 🍵 👫 ⚒ 👟 ⚪️➡️ 🌐 🔢 ⏮️ <a href="https://docs.pydantic.dev/latest/concepts/pydantic_settings/" class="external-link" target="_blank">Pydantic: ⚒ 🧾</a>.
 
 ### ✍ `Settings` 🎚
 
@@ -279,7 +279,7 @@ APP_NAME="ChimichangApp"
 📥 👥 ✍ 🎓 `Config` 🔘 👆 Pydantic `Settings` 🎓, &amp; ⚒ `env_file` 📁 ⏮️ 🇨🇻 📁 👥 💚 ⚙️.
 
 !!! tip
-     `Config` 🎓 ⚙️ Pydantic 📳. 👆 💪 ✍ 🌖 <a href="https://pydantic-docs.helpmanual.io/usage/model_config/" class="external-link" target="_blank">Pydantic 🏷 📁</a>
+     `Config` 🎓 ⚙️ Pydantic 📳. 👆 💪 ✍ 🌖 <a href="https://docs.pydantic.dev/latest/api/config/" class="external-link" target="_blank">Pydantic 🏷 📁</a>
 
 ### 🏗 `Settings` 🕴 🕐 ⏮️ `lru_cache`
 
index 6169aa52d71288e7db250fc8eee48171de45425d..5890b3b1364da572f5577896cbe34028e832a3de 100644 (file)
@@ -342,7 +342,7 @@ Webarg 🧰 👈 ⚒ 🚚 👈 🔛 🔝 📚 🛠️, 🔌 🏺.
 
 ## ⚙️ **FastAPI**
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydantic 🗃 🔬 💽 🔬, 🛠️ &amp; 🧾 (⚙️ 🎻 🔗) ⚓️ 🔛 🐍 🆎 🔑.
 
index be787d85b0cd243288f9d14805d71c3829cca957..3693f4c54d97a50a275f15b644a0268befe5cb63 100644 (file)
@@ -174,7 +174,7 @@ FastAPI 🔌 📶 ⏩ ⚙️, ✋️ 📶 🏋️ <abbr title='also known as "co
 
 ## Pydantic ⚒
 
-**FastAPI** 🍕 🔗 ⏮️ (&amp; ⚓️ 🔛) <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. , 🙆 🌖 Pydantic 📟 👆 ✔️, 🔜 👷.
+**FastAPI** 🍕 🔗 ⏮️ (&amp; ⚓️ 🔛) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. , 🙆 🌖 Pydantic 📟 👆 ✔️, 🔜 👷.
 
 ✅ 🔢 🗃 ⚓️ 🔛 Pydantic, <abbr title="Object-Relational Mapper">🐜</abbr>Ⓜ, <abbr title="Object-Document Mapper">🏭</abbr>Ⓜ 💽.
 
index 7e39972de878c49a3e22a42aad65c2b04dc2baea..7a45fe14b9d57cfbce1f0e797b650cc6b82918d3 100644 (file)
@@ -54,7 +54,7 @@
 
 ## 📄
 
-⏮️ 🔬 📚 🎛, 👤 💭 👈 👤 🔜 ⚙️ <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a> 🚮 📈.
+⏮️ 🔬 📚 🎛, 👤 💭 👈 👤 🔜 ⚙️ <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a> 🚮 📈.
 
 ⤴️ 👤 📉 ⚫️, ⚒ ⚫️ 🍕 🛠️ ⏮️ 🎻 🔗, 🐕‍🦺 🎏 🌌 🔬 ⚛ 📄, &amp; 📉 👨‍🎨 🐕‍🦺 (🆎 ✅, ✍) ⚓️ 🔛 💯 📚 👨‍🎨.
 
index 3c461b6ed6914031f40aea607f445bec4ed7c0e2..a0ccfafb81b6b8c423888e2dbdd682674500303a 100644 (file)
@@ -120,7 +120,7 @@ FastAPI 🏛, ⏩ (↕-🎭), 🕸 🛠️ 🏗 🛠️ ⏮️ 🐍 3️⃣.8️
 FastAPI 🧍 🔛 ⌚ 🐘:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">💃</a> 🕸 🍕.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 📊 🍕.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 📊 🍕.
 
 ## 👷‍♂
 
index e079d9039dd3736cc88174956867a93eeef5577f..b8f61a113fe02b946ba34d213d2e3054fa4e2eb1 100644 (file)
@@ -424,7 +424,7 @@ say_hi(name=None)  # This works, None is valid 🎉
 
 ## Pydantic 🏷
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 🐍 🗃 🎭 📊 🔬.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 🐍 🗃 🎭 📊 🔬.
 
 👆 📣 "💠" 💽 🎓 ⏮️ 🔢.
 
@@ -455,14 +455,14 @@ say_hi(name=None)  # This works, None is valid 🎉
     ```
 
 !!! info
-    💡 🌖 🔃 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic, ✅ 🚮 🩺</a>.
+    💡 🌖 🔃 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, ✅ 🚮 🩺</a>.
 
 **FastAPI** 🌐 ⚓️ 🔛 Pydantic.
 
 👆 🔜 👀 📚 🌅 🌐 👉 💡 [🔰 - 👩‍💻 🦮](tutorial/index.md){.internal-link target=_blank}.
 
 !!! tip
-    Pydantic ✔️ 🎁 🎭 🕐❔ 👆 ⚙️ `Optional` ⚖️ `Union[Something, None]` 🍵 🔢 💲, 👆 💪 ✍ 🌅 🔃 ⚫️ Pydantic 🩺 🔃 <a href="https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields" class="external-link" target="_blank">✔ 📦 🏑</a>.
+    Pydantic ✔️ 🎁 🎭 🕐❔ 👆 ⚙️ `Optional` ⚖️ `Union[Something, None]` 🍵 🔢 💲, 👆 💪 ✍ 🌅 🔃 ⚫️ Pydantic 🩺 🔃 <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">✔ 📦 🏑</a>.
 
 ## 🆎 🔑 **FastAPI**
 
index f4bd50f5cbd96a56a1ff0f2d5924d4977349de11..c941fa08afe6bc2fd78839086f973f98cb2333ce 100644 (file)
@@ -192,7 +192,7 @@ my_list: List[str]
 
 ↖️ ⚪️➡️ 😐 ⭐ 🆎 💖 `str`, `int`, `float`, ♒️. 👆 💪 ⚙️ 🌅 🏗 ⭐ 🆎 👈 😖 ⚪️➡️ `str`.
 
-👀 🌐 🎛 👆 ✔️, 🛒 🩺 <a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">Pydantic 😍 🆎</a>. 👆 🔜 👀 🖼 ⏭ 📃.
+👀 🌐 🎛 👆 ✔️, 🛒 🩺 <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic 😍 🆎</a>. 👆 🔜 👀 🖼 ⏭ 📃.
 
 🖼, `Image` 🏷 👥 ✔️ `url` 🏑, 👥 💪 📣 ⚫️ ↩️ `str`, Pydantic `HttpUrl`:
 
index ca2f113bf4c488db6bef7b81b6f8e440fb8c7550..db850162a21d47bd6abfc0572be41ffaa21fdc1e 100644 (file)
@@ -6,7 +6,7 @@
 
 👆 🛠️ 🌖 🕧 ✔️ 📨 **📨** 💪. ✋️ 👩‍💻 🚫 🎯 💪 📨 **📨** 💪 🌐 🕰.
 
-📣 **📨** 💪, 👆 ⚙️ <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 🏷 ⏮️ 🌐 👫 🏋️ &amp; 💰.
+📣 **📨** 💪, 👆 ⚙️ <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 🏷 ⏮️ 🌐 👫 🏋️ &amp; 💰.
 
 !!! info
     📨 💽, 👆 🔜 ⚙️ 1️⃣: `POST` (🌅 ⚠), `PUT`, `DELETE` ⚖️ `PATCH`.
index dfdf6141b8ee1e68f529be6806a495f4676b794e..54a186f12686380b8afd47112b8de1d9a8309712 100644 (file)
@@ -36,7 +36,7 @@
 * `datetime.timedelta`:
     * 🐍 `datetime.timedelta`.
     * 📨 &amp; 📨 🔜 🎨 `float` 🌐 🥈.
-    * Pydantic ✔ 🎦 ⚫️ "💾 8️⃣6️⃣0️⃣1️⃣ 🕰 ➕ 🔢", <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#json_encoders" class="external-link" target="_blank">👀 🩺 🌅 ℹ</a>.
+    * Pydantic ✔ 🎦 ⚫️ "💾 8️⃣6️⃣0️⃣1️⃣ 🕰 ➕ 🔢", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#json_encoders" class="external-link" target="_blank">👀 🩺 🌅 ℹ</a>.
 * `frozenset`:
     * 📨 &amp; 📨, 😥 🎏 `set`:
         * 📨, 📇 🔜 ✍, ❎ ❎ &amp; 🏭 ⚫️ `set`.
@@ -49,7 +49,7 @@
 * `Decimal`:
     * 🐩 🐍 `Decimal`.
     * 📨 &amp; 📨, 🍵 🎏 `float`.
-* 👆 💪 ✅ 🌐 ☑ Pydantic 📊 🆎 📥: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Pydantic 📊 🆎</a>.
+* 👆 💪 ✅ 🌐 ☑ Pydantic 📊 🆎 📥: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic 📊 🆎</a>.
 
 ## 🖼
 
index 06c36285d339262e637f553f151ec345e8419db8..7cb54a963b8b41ba6ed80f8377892b31e506dd44 100644 (file)
@@ -179,7 +179,7 @@ UserInDB(
 👈, ⚙️ 🐩 🐍 🆎 🔑 <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
 
 !!! note
-    🕐❔ ⚖ <a href="https://pydantic-docs.helpmanual.io/usage/types/#unions" class="external-link" target="_blank">`Union`</a>, 🔌 🏆 🎯 🆎 🥇, ⏩ 🌘 🎯 🆎. 🖼 🔛, 🌖 🎯 `PlaneItem` 👟 ⏭ `CarItem` `Union[PlaneItem, CarItem]`.
+    🕐❔ ⚖ <a href="https://docs.pydantic.dev/latest/concepts/types/#unions" class="external-link" target="_blank">`Union`</a>, 🔌 🏆 🎯 🆎 🥇, ⏩ 🌘 🎯 🆎. 🖼 🔛, 🌖 🎯 `PlaneItem` 👟 ⏭ `CarItem` `Union[PlaneItem, CarItem]`.
 
 === "🐍 3️⃣.6️⃣ &amp; 🔛"
 
index ef7bbfa6516fb1ca56e7008d92eac5a132a706d9..36d58e2af3da66694763cb1e7c6a188f41e90763 100644 (file)
@@ -163,7 +163,7 @@ path -> item_id
 !!! warning
     👫 📡 ℹ 👈 👆 💪 🚶 🚥 ⚫️ 🚫 ⚠ 👆 🔜.
 
-`RequestValidationError` 🎧-🎓 Pydantic <a href="https://pydantic-docs.helpmanual.io/usage/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>.
+`RequestValidationError` 🎧-🎓 Pydantic <a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>.
 
 **FastAPI** ⚙️ ⚫️ 👈, 🚥 👆 ⚙️ Pydantic 🏷 `response_model`, &amp; 👆 💽 ✔️ ❌, 👆 🔜 👀 ❌ 👆 🕹.
 
index ea939b458a8e6441183bd5bcc6afdf6b7d610d1c..ac64d2ebb6db5ffde7927bd61d19fc32cd42e0fa 100644 (file)
@@ -93,7 +93,7 @@
 
 ## Pydantic
 
-🌐 💽 🔬 🎭 🔽 🚘 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>, 👆 🤚 🌐 💰 ⚪️➡️ ⚫️. &amp; 👆 💭 👆 👍 ✋.
+🌐 💽 🔬 🎭 🔽 🚘 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>, 👆 🤚 🌐 💰 ⚪️➡️ ⚫️. &amp; 👆 💭 👆 👍 ✋.
 
 👆 💪 ⚙️ 🎏 🆎 📄 ⏮️ `str`, `float`, `bool` &amp; 📚 🎏 🏗 📊 🆎.
 
index f0e455abe151555ccd76168ff50ec182621d30a1..1268c0d6ef014fb85babb45860af9b7573693f3a 100644 (file)
@@ -227,7 +227,7 @@ q: Union[str, None] = Query(default=None, min_length=3)
     ```
 
 !!! tip
-    Pydantic, ❔ ⚫️❔ 🏋️ 🌐 💽 🔬 &amp; 🛠️ FastAPI, ✔️ 🎁 🎭 🕐❔ 👆 ⚙️ `Optional` ⚖️ `Union[Something, None]` 🍵 🔢 💲, 👆 💪 ✍ 🌅 🔃 ⚫️ Pydantic 🩺 🔃 <a href="https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields" class="external-link" target="_blank">✔ 📦 🏑</a>.
+    Pydantic, ❔ ⚫️❔ 🏋️ 🌐 💽 🔬 &amp; 🛠️ FastAPI, ✔️ 🎁 🎭 🕐❔ 👆 ⚙️ `Optional` ⚖️ `Union[Something, None]` 🍵 🔢 💲, 👆 💪 ✍ 🌅 🔃 ⚫️ Pydantic 🩺 🔃 <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">✔ 📦 🏑</a>.
 
 ### ⚙️ Pydantic `Required` ↩️ ❕ (`...`)
 
index 6ea4413f89b32f59053e17f7eb8c28534169420f..7103e9176a6d437c92e04931e15403d27dfe58db 100644 (file)
@@ -378,7 +378,7 @@ FastAPI 🔨 📚 👜 🔘 ⏮️ Pydantic ⚒ 💭 👈 📚 🎏 🚫 🎓 
 ```
 
 !!! info
-    FastAPI ⚙️ Pydantic 🏷 `.dict()` ⏮️ <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">🚮 `exclude_unset` 🔢</a> 🏆 👉.
+    FastAPI ⚙️ Pydantic 🏷 `.dict()` ⏮️ <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">🚮 `exclude_unset` 🔢</a> 🏆 👉.
 
 !!! info
     👆 💪 ⚙️:
@@ -386,7 +386,7 @@ FastAPI 🔨 📚 👜 🔘 ⏮️ Pydantic ⚒ 💭 👈 📚 🎏 🚫 🎓 
     * `response_model_exclude_defaults=True`
     * `response_model_exclude_none=True`
 
-    🔬 <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">Pydantic 🩺</a> `exclude_defaults` &amp; `exclude_none`.
+    🔬 <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">Pydantic 🩺</a> `exclude_defaults` &amp; `exclude_none`.
 
 #### 📊 ⏮️ 💲 🏑 ⏮️ 🔢
 
index d5bf8810aa26c536a128ff4d1355a43bce9da3f3..114d5a84a66191af61d91cd858be4eb0c3d372a2 100644 (file)
@@ -6,7 +6,7 @@
 
 ## Pydantic `schema_extra`
 
-👆 💪 📣 `example` Pydantic 🏷 ⚙️ `Config` &amp; `schema_extra`, 🔬 <a href="https://pydantic-docs.helpmanual.io/usage/schema/#schema-customization" class="external-link" target="_blank">Pydantic 🩺: 🔗 🛃</a>:
+👆 💪 📣 `example` Pydantic 🏷 ⚙️ `Config` &amp; `schema_extra`, 🔬 <a href="https://docs.pydantic.dev/latest/concepts/json_schema/#customizing-json-schema" class="external-link" target="_blank">Pydantic 🩺: 🔗 🛃</a>:
 
 === "🐍 3️⃣.6️⃣ &amp; 🔛"
 
index e3ced7ef4c8900a13c28bcb3a1f3b916ca23a664..ef08fcf4b5cd01e918d8363d786370d0ca5c50bc 100644 (file)
@@ -331,7 +331,7 @@ name: str
 
 🔜, Pydantic *🏷* 👂, `Item` &amp; `User`, 🚮 🔗 `Config` 🎓.
 
-👉 <a href="https://pydantic-docs.helpmanual.io/usage/model_config/" class="external-link" target="_blank">`Config`</a> 🎓 ⚙️ 🚚 📳 Pydantic.
+👉 <a href="https://docs.pydantic.dev/latest/api/config/" class="external-link" target="_blank">`Config`</a> 🎓 ⚙️ 🚚 📳 Pydantic.
 
 `Config` 🎓, ⚒ 🔢 `orm_mode = True`.
 
index ed1d5610fc2795c8def7e740ce9db5733f129665..481bf5e6910daaa1dc6a4dbaa87b8d163bf31158 100644 (file)
@@ -8,7 +8,7 @@ But FastAPI also supports using <a href="https://docs.python.org/3/library/datac
 {!../../../docs_src/dataclasses/tutorial001.py!}
 ```
 
-This is still supported thanks to **Pydantic**, as it has <a href="https://pydantic-docs.helpmanual.io/usage/dataclasses/#use-of-stdlib-dataclasses-with-basemodel" class="external-link" target="_blank">internal support for `dataclasses`</a>.
+This is still supported thanks to **Pydantic**, as it has <a href="https://docs.pydantic.dev/latest/concepts/dataclasses/#use-of-stdlib-dataclasses-with-basemodel" class="external-link" target="_blank">internal support for `dataclasses`</a>.
 
 So, even with the code above that doesn't use Pydantic explicitly, FastAPI is using Pydantic to convert those standard dataclasses to Pydantic's own flavor of dataclasses.
 
@@ -91,7 +91,7 @@ Check the in-code annotation tips above to see more specific details.
 
 You can also combine `dataclasses` with other Pydantic models, inherit from them, include them in your own models, etc.
 
-To learn more, check the <a href="https://pydantic-docs.helpmanual.io/usage/dataclasses/" class="external-link" target="_blank">Pydantic docs about dataclasses</a>.
+To learn more, check the <a href="https://docs.pydantic.dev/latest/concepts/dataclasses/" class="external-link" target="_blank">Pydantic docs about dataclasses</a>.
 
 ## Version
 
index 03429b187fe55a48f1d85596f90ae9160890843f..fb7a6d917d12b08cb60a5a7e1e9d4d6602e3820d 100644 (file)
@@ -36,7 +36,7 @@ This part is pretty normal, most of the code is probably already familiar to you
 ```
 
 !!! tip
-    The `callback_url` query parameter uses a Pydantic <a href="https://pydantic-docs.helpmanual.io/usage/types/#urls" class="external-link" target="_blank">URL</a> type.
+    The `callback_url` query parameter uses a Pydantic <a href="https://docs.pydantic.dev/latest/concepts/types/#urls" class="external-link" target="_blank">URL</a> type.
 
 The only new thing is the `callbacks=invoices_callback_router.routes` as an argument to the *path operation decorator*. We'll see what that is next.
 
index 70bbcac91c3cb46acc228bf53987664a1f5eb0fa..d351c4e0b7d323df0dff3b6b3eb4d39d3654af50 100644 (file)
@@ -342,7 +342,7 @@ Now APIStar is a set of tools to validate OpenAPI specifications, not a web fram
 
 ## Used by **FastAPI**
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydantic is a library to define data validation, serialization and documentation (using JSON Schema) based on Python type hints.
 
index 6f13b03bb92353ec4849bf18a63911ac8a180e0c..6f0e74b3d188243719c4c2ae92fb31b2a066e491 100644 (file)
@@ -179,7 +179,7 @@ With **FastAPI** you get all of **Starlette**'s features (as FastAPI is just Sta
 
 ## Pydantic features
 
-**FastAPI** is fully compatible with (and based on) <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. So, any additional Pydantic code you have, will also work.
+**FastAPI** is fully compatible with (and based on) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. So, any additional Pydantic code you have, will also work.
 
 Including external libraries also based on Pydantic, as <abbr title="Object-Relational Mapper">ORM</abbr>s, <abbr title="Object-Document Mapper">ODM</abbr>s for databases.
 
index 9db1027c26c2abb735b7e42d360404b65439c0b7..7824fb080ffe5bfcc736116c1959fe6257a076c6 100644 (file)
@@ -54,7 +54,7 @@ All in a way that provided the best development experience for all the developer
 
 ## Requirements
 
-After testing several alternatives, I decided that I was going to use <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a> for its advantages.
+After testing several alternatives, I decided that I was going to use <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a> for its advantages.
 
 Then I contributed to it, to make it fully compliant with JSON Schema, to support different ways to define constraint declarations, and to improve editor support (type checks, autocompletion) based on the tests in several editors.
 
index 10430f723e9361c59e2f68d79bb4704d7d84fd2e..86b0c699b7ea6c9f4b1756595f0863dcb3e6de67 100644 (file)
@@ -129,7 +129,7 @@ Python 3.8+
 FastAPI stands on the shoulders of giants:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> for the web parts.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> for the data parts.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> for the data parts.
 
 ## Installation
 
index cdd22ea4a2e3394fe24600d82b4150ec2695640f..51db744ff5a9b5f2c573f5cb427cf245a88e8f4d 100644 (file)
@@ -434,7 +434,7 @@ It doesn't mean "`one_person` is the **class** called `Person`".
 
 ## Pydantic models
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> is a Python library to perform data validation.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> is a Python library to perform data validation.
 
 You declare the "shape" of the data as classes with attributes.
 
@@ -465,14 +465,14 @@ An example from the official Pydantic docs:
     ```
 
 !!! info
-    To learn more about <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic, check its docs</a>.
+    To learn more about <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, check its docs</a>.
 
 **FastAPI** is all based on Pydantic.
 
 You will see a lot more of all this in practice in the [Tutorial - User Guide](tutorial/index.md){.internal-link target=_blank}.
 
 !!! tip
-    Pydantic has a special behavior when you use `Optional` or `Union[Something, None]` without a default value, you can read more about it in the Pydantic docs about <a href="https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields" class="external-link" target="_blank">Required Optional fields</a>.
+    Pydantic has a special behavior when you use `Optional` or `Union[Something, None]` without a default value, you can read more about it in the Pydantic docs about <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">Required Optional fields</a>.
 
 ## Type Hints with Metadata Annotations
 
index 99d36bae912b7969c000761aedfda1fbbfd35104..279356f24ec3f5fd9c5e4d594f7f9e80b3220265 100644 (file)
@@ -3486,7 +3486,7 @@ Note: all the previous parameters are still there, so it's still possible to dec
 
 * Upgrade Pydantic supported version to `0.29.0`.
     * New supported version range is `"pydantic >=0.28,<=0.29.0"`.
-    * This adds support for Pydantic [Generic Models](https://pydantic-docs.helpmanual.io/#generic-models), kudos to [@dmontagu](https://github.com/dmontagu).
+    * This adds support for Pydantic [Generic Models](https://docs.pydantic.dev/latest/#generic-models), kudos to [@dmontagu](https://github.com/dmontagu).
     * PR [#344](https://github.com/tiangolo/fastapi/pull/344).
 
 ## 0.30.1
index 7058d4ad040c531673fd767ad924b8ea363880f3..4c199f0283b36f29bb9a697e38147d213fd29504 100644 (file)
@@ -192,7 +192,7 @@ Again, doing just that declaration, with **FastAPI** you get:
 
 Apart from normal singular types like `str`, `int`, `float`, etc. you can use more complex singular types that inherit from `str`.
 
-To see all the options you have, checkout the docs for <a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">Pydantic's exotic types</a>. You will see some examples in the next chapter.
+To see all the options you have, checkout the docs for <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic's exotic types</a>. You will see some examples in the next chapter.
 
 For example, as in the `Image` model we have a `url` field, we can declare it to be an instance of Pydantic's `HttpUrl` instead of a `str`:
 
index 67ba48f1e679aec327b6881072b724a9f1ba0b64..f9af42938c11f354e68f23777d66bb8e03069d01 100644 (file)
@@ -6,7 +6,7 @@ A **request** body is data sent by the client to your API. A **response** body i
 
 Your API almost always has to send a **response** body. But clients don't necessarily need to send **request** bodies all the time.
 
-To declare a **request** body, you use <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> models with all their power and benefits.
+To declare a **request** body, you use <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> models with all their power and benefits.
 
 !!! info
     To send data, you should use one of: `POST` (the more common), `PUT`, `DELETE` or `PATCH`.
index fd7a99af32ab4774d2e8bcb158507579c706ef0a..e705a18e43b2fa2553f2e006e066b72e58ed6695 100644 (file)
@@ -36,7 +36,7 @@ Here are some of the additional data types you can use:
 * `datetime.timedelta`:
     * A Python `datetime.timedelta`.
     * In requests and responses will be represented as a `float` of total seconds.
-    * Pydantic also allows representing it as a "ISO 8601 time diff encoding", <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#json_encoders" class="external-link" target="_blank">see the docs for more info</a>.
+    * Pydantic also allows representing it as a "ISO 8601 time diff encoding", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#json_encoders" class="external-link" target="_blank">see the docs for more info</a>.
 * `frozenset`:
     * In requests and responses, treated the same as a `set`:
         * In requests, a list will be read, eliminating duplicates and converting it to a `set`.
index ad253a3365e2fa1113db100d083c2784d8e268a4..49b00c73057c084cccbb32925f023dd89360f342 100644 (file)
@@ -184,7 +184,7 @@ It will be defined in OpenAPI with `anyOf`.
 To do that, use the standard Python type hint <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
 
 !!! note
-    When defining a <a href="https://pydantic-docs.helpmanual.io/usage/types/#unions" class="external-link" target="_blank">`Union`</a>, include the most specific type first, followed by the less specific type. In the example below, the more specific `PlaneItem` comes before `CarItem` in `Union[PlaneItem, CarItem]`.
+    When defining a <a href="https://docs.pydantic.dev/latest/concepts/types/#unions" class="external-link" target="_blank">`Union`</a>, include the most specific type first, followed by the less specific type. In the example below, the more specific `PlaneItem` comes before `CarItem` in `Union[PlaneItem, CarItem]`.
 
 === "Python 3.10+"
 
index 7d521696d88ef6353325330095b35b9f6ad61d3f..98ac55d1f7722f0cac67423aa73b6ab9fd9ff0eb 100644 (file)
@@ -163,7 +163,7 @@ path -> item_id
 !!! warning
     These are technical details that you might skip if it's not important for you now.
 
-`RequestValidationError` is a sub-class of Pydantic's <a href="https://pydantic-docs.helpmanual.io/usage/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>.
+`RequestValidationError` is a sub-class of Pydantic's <a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>.
 
 **FastAPI** uses it so that, if you use a Pydantic model in `response_model`, and your data has an error, you will see the error in your log.
 
index 847b56334218efaabb7dda8e6bacce0997e77f47..6246d6680bfc54507f114a39d073be4d27f5a6e9 100644 (file)
@@ -95,7 +95,7 @@ The same way, there are many compatible tools. Including code generation tools f
 
 ## Pydantic
 
-All the data validation is performed under the hood by <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>, so you get all the benefits from it. And you know you are in good hands.
+All the data validation is performed under the hood by <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>, so you get all the benefits from it. And you know you are in good hands.
 
 You can use the same type declarations with `str`, `float`, `bool` and many other complex data types.
 
index 7a9bc487541f97706fa9ff824172238f43043949..24784efadd0fb2897b1dd806ca6b71e9f5d98070 100644 (file)
@@ -500,7 +500,7 @@ To do that, you can declare that `None` is a valid type but still use `...` as t
     ```
 
 !!! tip
-    Pydantic, which is what powers all the data validation and serialization in FastAPI, has a special behavior when you use `Optional` or `Union[Something, None]` without a default value, you can read more about it in the Pydantic docs about <a href="https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields" class="external-link" target="_blank">Required Optional fields</a>.
+    Pydantic, which is what powers all the data validation and serialization in FastAPI, has a special behavior when you use `Optional` or `Union[Something, None]` without a default value, you can read more about it in the Pydantic docs about <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">Required Optional fields</a>.
 
 !!! tip
     Remember that in most of the cases, when something is required, you can simply omit the default, so you normally don't have to use `...`.
index d5683ac7f2e8aca3bfbb4aeaf7b4910b4067624d..0e6292629a613a064c9a73b880b80b750bcf4bf1 100644 (file)
@@ -383,7 +383,7 @@ So, if you send a request to that *path operation* for the item with ID `foo`, t
     The examples here use `.dict()` for compatibility with Pydantic v1, but you should use `.model_dump()` instead if you can use Pydantic v2.
 
 !!! info
-    FastAPI uses Pydantic model's `.dict()` with <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">its `exclude_unset` parameter</a> to achieve this.
+    FastAPI uses Pydantic model's `.dict()` with <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">its `exclude_unset` parameter</a> to achieve this.
 
 !!! info
     You can also use:
@@ -391,7 +391,7 @@ So, if you send a request to that *path operation* for the item with ID `foo`, t
     * `response_model_exclude_defaults=True`
     * `response_model_exclude_none=True`
 
-    as described in <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">the Pydantic docs</a> for `exclude_defaults` and `exclude_none`.
+    as described in <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">the Pydantic docs</a> for `exclude_defaults` and `exclude_none`.
 
 #### Data with values for fields with defaults
 
index 70d9482df2257b4de79c0205e6f3ae18d428f78a..1a2000f02ba6e0265fc9da595756cdd3932d1b4b 100644 (file)
@@ -338,7 +338,7 @@ Not only the IDs of those items, but all the data that we defined in the Pydanti
 
 Now, in the Pydantic *models* for reading, `Item` and `User`, add an internal `Config` class.
 
-This <a href="https://pydantic-docs.helpmanual.io/usage/model_config/" class="external-link" target="_blank">`Config`</a> class is used to provide configurations to Pydantic.
+This <a href="https://docs.pydantic.dev/latest/api/config/" class="external-link" target="_blank">`Config`</a> class is used to provide configurations to Pydantic.
 
 In the `Config` class, set the attribute `orm_mode = True`.
 
index 1496628d1a106cc2fa17280df76959202663d34c..7623d8eb18628066a7d901cd1c754a970d90f035 100644 (file)
@@ -179,7 +179,7 @@ Con **FastAPI** obtienes todas las características de **Starlette** (porque Fas
 
 ## Características de Pydantic
 
-**FastAPI** está basado y es completamente compatible con <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Tanto así, que cualquier código de Pydantic que tengas también funcionará.
+**FastAPI** está basado y es completamente compatible con <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Tanto así, que cualquier código de Pydantic que tengas también funcionará.
 
 Esto incluye a librerías externas basadas en Pydantic como <abbr title="Object-Relational Mapper">ORM</abbr>s y <abbr title="Object-Document Mapper">ODM</abbr>s para bases de datos.
 
index 28b7f4d1b59fe319af56ac3b1ae9c486824edfbc..b3d9c8bf220b5a8bd6525f63124d2d332db154ee 100644 (file)
@@ -111,7 +111,7 @@ Python 3.8+
 FastAPI está sobre los hombros de gigantes:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> para las partes web.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> para las partes de datos.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> para las partes de datos.
 
 ## Instalación
 
index b83cbe3f54d4aa6cdf41ffb03737757e01d1639a..89edbb31e737eed9b4db01c6c067235017c8e10f 100644 (file)
@@ -237,7 +237,7 @@ Una vez más tendrás todo el soporte del editor:
 
 ## Modelos de Pydantic
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> es una library de Python para llevar a cabo validación de datos.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> es una library de Python para llevar a cabo validación de datos.
 
 Tú declaras la "forma" de los datos mediante clases con atributos.
 
@@ -254,7 +254,7 @@ Tomado de la documentación oficial de Pydantic:
 ```
 
 !!! info "Información"
-    Para aprender más sobre <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic mira su documentación</a>.
+    Para aprender más sobre <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic mira su documentación</a>.
 
 **FastAPI** está todo basado en Pydantic.
 
index 765ae4140bdb7e4331e2493200a1c602c03f8dc0..7faa92f51c91b18d3a20065cac2e65b210b12acf 100644 (file)
@@ -93,7 +93,7 @@ De la misma manera hay muchas herramientas compatibles. Incluyendo herramientas
 
 ## Pydantic
 
-Toda la validación de datos es realizada tras bastidores por <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>, así que obtienes todos sus beneficios. Así sabes que estás en buenas manos.
+Toda la validación de datos es realizada tras bastidores por <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>, así que obtienes todos sus beneficios. Así sabes que estás en buenas manos.
 
 Puedes usar las mismas declaraciones de tipos con `str`, `float`, `bool` y otros tipos de datos más complejos.
 
index 3040ce3dd906532417e49b6f9195c3d1439022cf..58c34b7fccdcdec162295067ebdd2f55c541f414 100644 (file)
@@ -182,7 +182,7 @@ FastAPI شامل یک سیستم <abbr title='همچنین به عنوان "comp
 
 ## ویژگی های Pydantic
 
-**FastAPI** کاملا (و براساس) با <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a> سازگار است. بنابراین هرکد Pydantic اضافی که داشته باشید، نیز کار خواهد کرد.
+**FastAPI** کاملا (و براساس) با <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> سازگار است. بنابراین هرکد Pydantic اضافی که داشته باشید، نیز کار خواهد کرد.
 
 از جمله کتابخانه های خارجی نیز مبتنی بر Pydantic میتوان به <abbr title="Object-Relational Mapper">ORM</abbr> و <abbr title="Object-Document Mapper">ODM</abbr> ها برای دیتابیس ها اشاره کرد.
 
index b267eef23d34e3f157e726353a10a02eec30c5a7..e5231ec8d5ed9dd1808d4e31a9afd52cc726c47c 100644 (file)
@@ -111,7 +111,7 @@ FastAPI یک وب فریم‌ورک مدرن و سریع (با کارایی با
 FastAPI مبتنی بر ابزارهای قدرتمند زیر است:
 
 * فریم‌ورک <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> برای بخش وب.
-* کتابخانه <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> برای بخش داده‌.
+* کتابخانه <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> برای بخش داده‌.
 
 ## نصب
 
index 8e58a3dfa9da44ad6f5a6cb26d3208181bfff92e..a64edd67100cb2831a5a1165f60244b4058897a5 100644 (file)
@@ -371,7 +371,7 @@ Exister.
 
 ## Utilisés par **FastAPI**
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydantic est une bibliothèque permettant de définir la validation, la sérialisation et la documentation des données (à l'aide de JSON Schema) en se basant sur les Python type hints.
 
index ce7508d2765933056b9fe10a4f08d934d12808bf..1457df2a5c1a384646338684b322ecd32be074c0 100644 (file)
@@ -174,7 +174,7 @@ Avec **FastAPI** vous aurez toutes les fonctionnalités de **Starlette** (FastAP
 
 ## Fonctionnalités de Pydantic
 
-**FastAPI** est totalement compatible avec (et basé sur) <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Le code utilisant Pydantic que vous ajouterez fonctionnera donc aussi.
+**FastAPI** est totalement compatible avec (et basé sur) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Le code utilisant Pydantic que vous ajouterez fonctionnera donc aussi.
 
 Inclus des librairies externes basées, aussi, sur Pydantic, servent d'<abbr title="Object-Relational Mapper">ORM</abbr>s, <abbr title="Object-Document Mapper">ODM</abbr>s pour les bases de données.
 
index b77664be6c2c071bdae986aa74f118321b55b692..beb649121dda52185d3bb3b78733bd0349a1f507 100644 (file)
@@ -54,7 +54,7 @@ Le tout de manière à offrir la meilleure expérience de développement à tous
 
 ## Exigences
 
-Après avoir testé plusieurs alternatives, j'ai décidé que j'allais utiliser <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a> pour ses avantages.
+Après avoir testé plusieurs alternatives, j'ai décidé que j'allais utiliser <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a> pour ses avantages.
 
 J'y ai ensuite contribué, pour le rendre entièrement compatible avec JSON Schema, pour supporter différentes manières de définir les déclarations de contraintes, et pour améliorer le support des éditeurs (vérifications de type, autocomplétion) sur la base des tests effectués dans plusieurs éditeurs.
 
index 3a757409fd87a8b07f6b7ebb82a8938a7d8aaf60..bc3ae3c06307df54cc661eab783485dc58c802ed 100644 (file)
@@ -120,7 +120,7 @@ Python 3.8+
 FastAPI repose sur les épaules de géants :
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> pour les parties web.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> pour les parties données.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> pour les parties données.
 
 ## Installation
 
index f49fbafd364d6b34deee786a4c679147f5391a23..4232633e3d6e542b3a87871890255a7f15343f30 100644 (file)
@@ -265,7 +265,7 @@ Et vous aurez accès, encore une fois, au support complet offert par l'éditeur
 
 ## Les modèles Pydantic
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> est une bibliothèque Python pour effectuer de la validation de données.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> est une bibliothèque Python pour effectuer de la validation de données.
 
 Vous déclarez la forme de la donnée avec des classes et des attributs.
 
@@ -282,7 +282,7 @@ Extrait de la documentation officielle de **Pydantic** :
 ```
 
 !!! info
-    Pour en savoir plus à propos de <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic, allez jeter un coup d'oeil à sa documentation</a>.
+    Pour en savoir plus à propos de <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, allez jeter un coup d'oeil à sa documentation</a>.
 
 **FastAPI** est basé entièrement sur **Pydantic**.
 
index 89720c973aeb93b5d809cdfcdfaa6f56b85f213c..ae952405cbc2622f4ab9f3674f9243f0b7fb8586 100644 (file)
@@ -6,7 +6,7 @@ Le corps d'une **requête** est de la donnée envoyée par le client à votre AP
 
 Votre API aura presque toujours à envoyer un corps de **réponse**. Mais un client n'a pas toujours à envoyer un corps de **requête**.
 
-Pour déclarer un corps de **requête**, on utilise les modèles de <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> en profitant de tous leurs avantages et fonctionnalités.
+Pour déclarer un corps de **requête**, on utilise les modèles de <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> en profitant de tous leurs avantages et fonctionnalités.
 
 !!! info
     Pour envoyer de la donnée, vous devriez utiliser : `POST` (le plus populaire), `PUT`, `DELETE` ou `PATCH`.
index 894d62dd46108e9b760a0d9b5568ad87cd854d64..817545c1c67258155c227b14fc03c0b1722238fa 100644 (file)
@@ -106,7 +106,7 @@ pour de nombreux langages.
 
 ## Pydantic
 
-Toute la validation de données est effectué en arrière-plan avec <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>,
+Toute la validation de données est effectué en arrière-plan avec <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>,
 dont vous bénéficierez de tous les avantages. Vous savez donc que vous êtes entre de bonnes mains.
 
 ## L'ordre importe
index e404baa590adad2a035a7aa94f131d972f292a8a..335a227436f81c777546db7244760a3fb548ab1f 100644 (file)
@@ -115,7 +115,7 @@ FastAPI היא תשתית רשת מודרנית ומהירה (ביצועים ג
 FastAPI עומדת על כתפי ענקיות:
 
 -   <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> לחלקי הרשת.
--   <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> לחלקי המידע.
+-   <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> לחלקי המידע.
 
 ## התקנה
 
index 3bc3724e296169b044e7e68a0803b685417caa31..75ea88c4d80958bb43b661bf6a350d63b49a457a 100644 (file)
@@ -120,7 +120,7 @@ Python 3.8+
 A FastAPI óriások vállán áll:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> a webes részekhez.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> az adat részekhez.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> az adat részekhez.
 
 ## Telepítés
 
index 0b7a896e183a776e5373f7d63bf970b72b095d5e..a69008d2b4c89e3794b63bea66e1af626d68d65b 100644 (file)
@@ -115,7 +115,7 @@ Python 3.6+
 FastAPI è basata su importanti librerie:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> per le parti web.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> per le parti dei dati.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> per le parti dei dati.
 
 ## Installazione
 
index ca6b29a0776dbd6bd9069c0e0197935b2f8985d1..ce4b364080cdae0c99061f88f3b8b9a2ee179173 100644 (file)
@@ -342,7 +342,7 @@ OpenAPIやJSON Schemaのような標準に基づいたものではありませ
 
 ## **FastAPI**が利用しているもの
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydanticは、Pythonの型ヒントを元にデータのバリデーション、シリアライゼーション、 (JSON Schemaを使用した) ドキュメントを定義するライブラリです。
 
index 854c0764cda15e2f11bae850dffbd917385356ba..98c59e7c4958805c42516a30b9a976011e5f7480 100644 (file)
@@ -177,7 +177,7 @@ FastAPIには非常に使いやすく、非常に強力な<abbr title='also know
 
 ## Pydanticの特徴
 
-**FastAPI**は<a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic </strong></a>と完全に互換性があります(そしてベースになっています)。したがって、追加のPydanticコードがあれば、それも機能します。
+**FastAPI**は<a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic </strong></a>と完全に互換性があります(そしてベースになっています)。したがって、追加のPydanticコードがあれば、それも機能します。
 
 データベースのために<abbr title = "Object-Relational Mapper">ORM</abbr>sや、<abbr title = "Object-Document Mapper">ODM</abbr>sなどの、Pydanticに基づく外部ライブラリを備えています。
 
index d0d1230c4b9d03c3fcf5166e10531ee19902c22d..5d53cf77a61b967a69d435eb34602ffc3a2b102c 100644 (file)
@@ -55,7 +55,7 @@
 
 ## 要件
 
-いくつかの代替手法を試したあと、私は<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a>の強みを利用することを決めました。
+いくつかの代替手法を試したあと、私は<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a>の強みを利用することを決めました。
 
 そして、JSON Schemaに完全に準拠するようにしたり、制約宣言を定義するさまざまな方法をサポートしたり、いくつかのエディターでのテストに基づいてエディターのサポート (型チェック、自動補完) を改善するために貢献しました。
 
index 84cb4830829374e2929972ba15d3370786f0a1d3..4f66b1a40ea775f4caccbadd7926fa592d5ca248 100644 (file)
@@ -112,7 +112,7 @@ Python 3.8+
 FastAPI は巨人の肩の上に立っています。
 
 - Web の部分は<a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>
-- データの部分は<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+- データの部分は<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 ## インストール
 
index bbfef2adf1853f6d3c3c30c72d0ca2f4135c2d13..f8e02fdc3e6570bddfbdbb993d3439dc6e3cfe76 100644 (file)
@@ -266,7 +266,7 @@ John Doe
 
 ## Pydanticのモデル
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> はデータ検証を行うためのPythonライブラリです。
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> はデータ検証を行うためのPythonライブラリです。
 
 データの「形」を属性付きのクラスとして宣言します。
 
@@ -283,7 +283,7 @@ Pydanticの公式ドキュメントから引用:
 ```
 
 !!! info "情報"
-    Pydanticについてより学びたい方は<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">ドキュメントを参照してください</a>.
+    Pydanticについてより学びたい方は<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">ドキュメントを参照してください</a>.
 
 **FastAPI** はすべてPydanticをベースにしています。
 
index 7f916c47a107968659e4bfcb93ebb5871e2c890a..092e25798606549fac929778c906dde812792055 100644 (file)
@@ -118,7 +118,7 @@ Pydanticモデルの各属性には型があります。
 
 `str`や`int`、`float`のような通常の単数型の他にも、`str`を継承したより複雑な単数型を使うこともできます。
 
-すべてのオプションをみるには、<a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">Pydanticのエキゾチック な型</a>のドキュメントを確認してください。次の章でいくつかの例をみることができます。
+すべてのオプションをみるには、<a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydanticのエキゾチック な型</a>のドキュメントを確認してください。次の章でいくつかの例をみることができます。
 
 例えば、`Image`モデルのように`url`フィールドがある場合、`str`の代わりにPydanticの`HttpUrl`を指定することができます:
 
index d2559205bd5767f8c3fc85749a4f4ff617e26bca..12332991d063d1e3ab65ac1b1bf812c91c5262cb 100644 (file)
@@ -6,7 +6,7 @@
 
 APIはほとんどの場合 **レスポンス** ボディを送らなければなりません。しかし、クライアントは必ずしも **リクエスト** ボディを送らなければいけないわけではありません。
 
-**リクエスト** ボディを宣言するために <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> モデルを使用します。そして、その全てのパワーとメリットを利用します。
+**リクエスト** ボディを宣言するために <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> モデルを使用します。そして、その全てのパワーとメリットを利用します。
 
 !!! info "情報"
     データを送るには、`POST` (もっともよく使われる)、`PUT`、`DELETE` または `PATCH` を使うべきです。
index a152e032263b29e775321d4063d935634759a337..c0fdbd58c963872489d1ae1f540a001086915949 100644 (file)
@@ -36,7 +36,7 @@
 * `datetime.timedelta`:
     * Pythonの`datetime.timedelta`です。
     * リクエストとレスポンスでは合計秒数の`float`で表現されます。
-    * Pydanticでは「ISO 8601 time diff encoding」として表現することも可能です。<a href="https://pydantic-docs.helpmanual.io/#json-serialisation" class="external-link" target="_blank">詳細はドキュメントを参照してください</a>。
+    * Pydanticでは「ISO 8601 time diff encoding」として表現することも可能です。<a href="https://docs.pydantic.dev/latest/concepts/serialization/" class="external-link" target="_blank">詳細はドキュメントを参照してください</a>。
 * `frozenset`:
     * リクエストとレスポンスでは`set`と同じように扱われます:
         * リクエストでは、リストが読み込まれ、重複を排除して`set`に変換されます。
@@ -50,7 +50,7 @@
     * Pythonの標準的な`Decimal`です。
     * リクエストやレスポンスでは`float`と同じように扱います。
 
-* Pydanticの全ての有効な型はこちらで確認できます: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Pydantic data types</a>。
+* Pydanticの全ての有効な型はこちらで確認できます: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic data types</a>。
 ## 例
 
 ここでは、上記の型のいくつかを使用したパラメータを持つ*path operation*の例を示します。
index ec36e9880d85932334cf72c88fc759b105f02e97..0b95cae0f1278e1e592dfe21f0a76dd3f28742df 100644 (file)
@@ -163,7 +163,7 @@ path -> item_id
 !!! warning "注意"
     これらは今のあなたにとって重要でない場合は省略しても良い技術的な詳細です。
 
-`RequestValidationError`はPydanticの<a href="https://pydantic-docs.helpmanual.io/#error-handling" class="external-link" target="_blank">`ValidationError`</a>のサブクラスです。
+`RequestValidationError`はPydanticの<a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>のサブクラスです。
 
 **FastAPI** は`response_model`でPydanticモデルを使用していて、データにエラーがあった場合、ログにエラーが表示されるようにこれを使用しています。
 
index 66de05afb1339afe2c4e82b14b05da5dab409b1d..b395dc41d9048a85af0a37c564fd85a97d6788d8 100644 (file)
@@ -93,7 +93,7 @@ Pythonのformat文字列と同様のシンタックスで「パスパラメー
 
 ## Pydantic
 
-すべてのデータバリデーションは <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> によって内部で実行されるため、Pydanticの全てのメリットが得られます。そして、安心して利用することができます。
+すべてのデータバリデーションは <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> によって内部で実行されるため、Pydanticの全てのメリットが得られます。そして、安心して利用することができます。
 
 `str`、 `float` 、 `bool` および他の多くの複雑なデータ型を型宣言に使用できます。
 
index 749b330610d71678fe5f900f4635f53f654440da..b8b6978d45626e07aff443fdc617e0f03b8261dd 100644 (file)
@@ -122,7 +122,7 @@ FastAPIは`response_model`を使って以下のことをします:
 ```
 
 !!! info "情報"
-    FastAPIはこれをするために、Pydanticモデルの`.dict()`を<a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">その`exclude_unset`パラメータ</a>で使用しています。
+    FastAPIはこれをするために、Pydanticモデルの`.dict()`を<a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">その`exclude_unset`パラメータ</a>で使用しています。
 
 !!! info "情報"
     以下も使用することができます:
@@ -130,7 +130,7 @@ FastAPIは`response_model`を使って以下のことをします:
     * `response_model_exclude_defaults=True`
     * `response_model_exclude_none=True`
 
-    `exclude_defaults`と`exclude_none`については、<a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">Pydanticのドキュメント</a>で説明されている通りです。
+    `exclude_defaults`と`exclude_none`については、<a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">Pydanticのドキュメント</a>で説明されている通りです。
 
 #### デフォルト値を持つフィールドの値を持つデータ
 
index 3102a4936248e6bb56e3d01abebd2fbcbae92981..d96163b824a65ce8f27f00481043c649a0d7f7db 100644 (file)
@@ -8,7 +8,7 @@ JSON Schemaの追加情報を宣言する方法はいくつかあります。
 
 ## Pydanticの`schema_extra`
 
-<a href="https://pydantic-docs.helpmanual.io/usage/schema/#schema-customization" class="external-link" target="_blank">Pydanticのドキュメント: スキーマのカスタマイズ</a>で説明されているように、`Config`と`schema_extra`を使ってPydanticモデルの例を宣言することができます:
+<a href="https://docs.pydantic.dev/latest/concepts/json_schema/#schema-customization" class="external-link" target="_blank">Pydanticのドキュメント: スキーマのカスタマイズ</a>で説明されているように、`Config`と`schema_extra`を使ってPydanticモデルの例を宣言することができます:
 
 ```Python hl_lines="15 16 17 18 19 20 21 22 23"
 {!../../../docs_src/schema_extra_example/tutorial001.py!}
index 42a3ff172cb9629b72472a38562b6c8f6892229b..54479165e8e0abb89af2e18818d30250476afb41 100644 (file)
@@ -179,7 +179,7 @@ FastAPI는 사용하기 매우 간편하지만, 엄청난 <abbr title='"컴포
 
 ## Pydantic 기능
 
-**FastAPI**는 <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>을 기반으로 하며 Pydantic과 완벽하게 호환됩니다. 그래서 어느 추가적인 Pydantic 코드를 여러분이 가지고 있든 작동할 것입니다.
+**FastAPI**는 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>을 기반으로 하며 Pydantic과 완벽하게 호환됩니다. 그래서 어느 추가적인 Pydantic 코드를 여러분이 가지고 있든 작동할 것입니다.
 
 Pydantic을 기반으로 하는, 데이터베이스를 위한 <abbr title="Object-Relational Mapper">ORM</abbr>, <abbr title="Object-Document Mapper">ODM</abbr>을 포함한 외부 라이브러리를 포함합니다.
 
index 09f368ce96b823c5dd92181dec179b4f519841ab..eeadc0363cd97d0e116f41380df428d9247ded60 100644 (file)
@@ -112,7 +112,7 @@ Python 3.8+
 FastAPI는 거인들의 어깨 위에 서 있습니다:
 
 * 웹 부분을 위한 <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
-* 데이터 부분을 위한 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>.
+* 데이터 부분을 위한 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>.
 
 ## 설치
 
index 16b93a7a94e30eb276032b8d743579cd09fbc779..267ce6c7e3b93465092bf6988057516a0ddfe393 100644 (file)
@@ -265,7 +265,7 @@ John Doe
 
 ## Pydantic 모델
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>은 데이터 검증(Validation)을 위한 파이썬 라이브러리입니다.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>은 데이터 검증(Validation)을 위한 파이썬 라이브러리입니다.
 
 당신은 속성들을 포함한 클래스 형태로 "모양(shape)"을 선언할 수 있습니다.
 
@@ -282,7 +282,7 @@ Pydantic 공식 문서 예시:
 ```
 
 !!! info "정보"
-    Pydantic<에 대해 더 배우고 싶다면 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">공식 문서</a>를 참고하세요.</a>
+    Pydantic<에 대해 더 배우고 싶다면 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">공식 문서</a>를 참고하세요.</a>
 
 
 **FastAPI**는 모두 Pydantic을 기반으로 되어 있습니다.
index 7b41aa35b9039bde3a3b016d8490830392975ffc..edf1a5f77a800c04e1dd5a3fedacb71de136f376 100644 (file)
@@ -117,7 +117,7 @@ Pydantic 모델의 각 어트리뷰트는 타입을 갖습니다.
 
 `str`, `int`, `float` 등과 같은 단일 타입과는 별개로, `str`을 상속하는 더 복잡한 단일 타입을 사용할 수 있습니다.
 
-모든 옵션을 보려면, <a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">Pydantic's exotic types</a> 문서를 확인하세요. 다음 장에서 몇가지 예제를 볼 수 있습니다.
+모든 옵션을 보려면, <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic's exotic types</a> 문서를 확인하세요. 다음 장에서 몇가지 예제를 볼 수 있습니다.
 
 예를 들어 `Image` 모델 안에 `url` 필드를 `str` 대신 Pydantic의 `HttpUrl`로 선언할 수 있습니다:
 
index 931728572877d901518799c65791f1218ede4631..8b98284bb2957184ff98614e5acc7f04617c66fe 100644 (file)
@@ -6,7 +6,7 @@
 
 여러분의 API는 대부분의 경우 **응답** 본문을 보내야 합니다. 하지만 클라이언트는 **요청** 본문을 매 번 보낼 필요가 없습니다.
 
-**요청** 본문을 선언하기 위해서 모든 강력함과 이점을 갖춘 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 모델을 사용합니다.
+**요청** 본문을 선언하기 위해서 모든 강력함과 이점을 갖춘 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 모델을 사용합니다.
 
 !!! 정보
     데이터를 보내기 위해, (좀 더 보편적인) `POST`, `PUT`, `DELETE` 혹은 `PATCH` 중에 하나를 사용하는 것이 좋습니다.
index 6d5d3735283bbb17e7fa92a589a0a96b1e0b3b5a..a75c3cc8cccf3003975892f232a04fe7fdb96e95 100644 (file)
@@ -93,7 +93,7 @@
 
 ## Pydantic
 
-모든 데이터 검증은 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>에 의해 내부적으로 수행되므로 이로 인한 이점을 모두 얻을 수 있습니다. 여러분은 관리를 잘 받고 있음을 느낄 수 있습니다.
+모든 데이터 검증은 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>에 의해 내부적으로 수행되므로 이로 인한 이점을 모두 얻을 수 있습니다. 여러분은 관리를 잘 받고 있음을 느낄 수 있습니다.
 
 `str`, `float`, `bool`, 그리고 다른 여러 복잡한 데이터 타입 선언을 할 수 있습니다.
 
index 0c9d5c16ed63ead2c8b323eba3514ce12baad766..feff88a4262d3ed061fc7010055c88062c96a8ab 100644 (file)
@@ -122,7 +122,7 @@ FastAPI는 이 `response_model`를 사용하여:
 ```
 
 !!! info "정보"
-    FastAPI는 이를 위해 Pydantic 모델의 `.dict()`의 <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank"> `exclude_unset` 매개변수</a>를 사용합니다.
+    FastAPI는 이를 위해 Pydantic 모델의 `.dict()`의 <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank"> `exclude_unset` 매개변수</a>를 사용합니다.
 
 !!! info "정보"
     아래 또한 사용할 수 있습니다:
@@ -130,7 +130,7 @@ FastAPI는 이 `response_model`를 사용하여:
     * `response_model_exclude_defaults=True`
     * `response_model_exclude_none=True`
 
-    <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">Pydantic 문서</a>에서 `exclude_defaults` 및 `exclude_none`에 대해 설명한 대로 사용할 수 있습니다.
+    <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">Pydantic 문서</a>에서 `exclude_defaults` 및 `exclude_none`에 대해 설명한 대로 사용할 수 있습니다.
 
 #### 기본값이 있는 필드를 갖는 값의 데이터
 
index 13f6d2ad7b2d24f81619b4d2cc524eadc1201a55..a6435977c9cb267d5b746158c292712fb3fae70a 100644 (file)
@@ -174,7 +174,7 @@ Dzięki **FastAPI** otrzymujesz wszystkie funkcje **Starlette** (ponieważ FastA
 
 ## Cechy Pydantic
 
-**FastAPI** jest w pełni kompatybilny z (oraz bazuje na) <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Tak więc każdy dodatkowy kod Pydantic, który posiadasz, również będzie działał.
+**FastAPI** jest w pełni kompatybilny z (oraz bazuje na) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Tak więc każdy dodatkowy kod Pydantic, który posiadasz, również będzie działał.
 
 Wliczając w to zewnętrzne biblioteki, również oparte o Pydantic, takie jak <abbr title="Mapowanie obiektowo-relacyjne. Po angielsku: Object-Relational Mapper">ORM</abbr>, <abbr title="Object-Document Mapper">ODM</abbr> dla baz danych.
 
index 828b13a05720b80cf82efd9df7af9ef91ee28ce8..ab33bfb9c80b34d48e4e92b216638c4fc488f88c 100644 (file)
@@ -111,7 +111,7 @@ Python 3.8+
 FastAPI oparty jest na:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> dla części webowej.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> dla części obsługujących dane.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> dla części obsługujących dane.
 
 ## Instalacja
 
index 61ee4f9000e10107d9b8b3d7d0d44d8b2de47036..ba721536ff0aa47ae36bf2aa6077f8cb5b625f72 100644 (file)
@@ -340,7 +340,7 @@ Agora APIStar é um conjunto de ferramentas para validar especificações OpenAP
 
 ## Usados por **FastAPI**
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydantic é uma biblioteca para definir validação de dados, serialização e documentação (usando JSON Schema) baseado nos Python _type hints_.
 
index 83bd0ea92cb23d733ebe98dda64baaed7e9cad0d..64efeeae1baa7baeca98f4a1df2b75310d1e6f41 100644 (file)
@@ -175,7 +175,7 @@ Com **FastAPI**, você terá todos os recursos do **Starlette** (já que FastAPI
 
 ## Recursos do Pydantic
 
-**FastAPI** é totalmente compatível com (e baseado no) <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Então, qualquer código Pydantic adicional que você tiver, também funcionará.
+**FastAPI** é totalmente compatível com (e baseado no) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Então, qualquer código Pydantic adicional que você tiver, também funcionará.
 
 Incluindo bibliotecas externas também baseadas no Pydantic, como <abbr title="Object-Relational Mapper">ORM</abbr>s e <abbr title="Object-Document Mapper">ODM</abbr>s para bancos de dados.
 
index 45427ec630735345b5be92bdc101e8ff7bb044f2..a7a1776601a2ec30fddabee2cd70b0eaff94abfe 100644 (file)
@@ -54,7 +54,7 @@ Tudo de uma forma que oferecesse a melhor experiência de desenvolvimento para t
 
 ## Requisitos
 
-Após testar várias alternativas, eu decidi que usaria o <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a> por suas vantagens.
+Após testar várias alternativas, eu decidi que usaria o <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a> por suas vantagens.
 
 Então eu contribuí com ele, para deixá-lo completamente de acordo com o JSON Schema, para dar suporte a diferentes maneiras de definir declarações de restrições, e melhorar o suporte a editores (conferências de tipos, auto completações) baseado nos testes em vários editores.
 
index 390247ec9d230645ade3032004d6ad0157cb3689..05786a0aa112ba05639330cb763d11d2fab5fd72 100644 (file)
@@ -105,7 +105,7 @@ Python 3.8+
 FastAPI está nos ombros de gigantes:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> para as partes web.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> para a parte de dados.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> para a parte de dados.
 
 ## Instalação
 
index 9f12211c74010cf459f81ad0a7eae385c72ab56c..52b2dad8efbb7cf0cb521f5cb75198728e4c032d 100644 (file)
@@ -266,7 +266,7 @@ E então, novamente, você recebe todo o suporte do editor:
 
 ## Modelos Pydantic
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank"> Pydantic </a> é uma biblioteca Python para executar a validação de dados.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank"> Pydantic </a> é uma biblioteca Python para executar a validação de dados.
 
 Você declara a "forma" dos dados como classes com atributos.
 
@@ -283,7 +283,7 @@ Retirado dos documentos oficiais dos Pydantic:
 ```
 
 !!! info "Informação"
-    Para saber mais sobre o <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank"> Pydantic, verifique seus documentos </a>.
+    Para saber mais sobre o <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"> Pydantic, verifique seus documentos </a>.
 
 **FastAPI** é todo baseado em Pydantic.
 
index 8ab77173e96d0f8d3f1cba0690e8cb41d8dbdecb..e039b09b2d8d7990c2280717931fea8f54e24f7a 100644 (file)
@@ -121,7 +121,7 @@ Novamente, apenas fazendo essa declaração, com o **FastAPI**, você ganha:
 
 Além dos tipos singulares normais como `str`, `int`, `float`, etc. Você também pode usar tipos singulares mais complexos que herdam de `str`.
 
-Para ver todas as opções possíveis, cheque a documentação para os<a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">tipos exoticos do Pydantic</a>. Você verá alguns exemplos no próximo capitulo.
+Para ver todas as opções possíveis, cheque a documentação para os<a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">tipos exoticos do Pydantic</a>. Você verá alguns exemplos no próximo capitulo.
 
 Por exemplo, no modelo `Image` nós temos um campo `url`, nós podemos declara-lo como um `HttpUrl` do Pydantic invés de como uma `str`:
 
index 99e05ab77e95ff67a7b06d6f188d5d322f660af7..5901b84148d01578e212f975e1ab157baf99394d 100644 (file)
@@ -6,7 +6,7 @@ O corpo da **requisição** é a informação enviada pelo cliente para sua API.
 
 Sua API quase sempre irá enviar um corpo na **resposta**. Mas os clientes não necessariamente precisam enviar um corpo em toda **requisição**.
 
-Para declarar um corpo da **requisição**, você utiliza os modelos do <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> com todos os seus poderes e benefícios.
+Para declarar um corpo da **requisição**, você utiliza os modelos do <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> com todos os seus poderes e benefícios.
 
 !!! info "Informação"
     Para enviar dados, você deve usar utilizar um dos métodos: `POST` (Mais comum), `PUT`, `DELETE` ou `PATCH`.
index e4b9913dc3387e4d1ff181e10603c8b0e4e19f85..5d50d89424ac5e57e99f3fe7f01c909b33626630 100644 (file)
@@ -36,7 +36,7 @@ Aqui estão alguns dos tipos de dados adicionais que você pode usar:
 * `datetime.timedelta`:
     * O `datetime.timedelta` do Python.
     * Em requisições e respostas será representado como um `float` de segundos totais.
-    * O Pydantic também permite representá-lo como uma "codificação ISO 8601 diferença de tempo", <a href="https://pydantic-docs.helpmanual.io/#json-serialisation" class="external-link" target="_blank">cheque a documentação para mais informações</a>.
+    * O Pydantic também permite representá-lo como uma "codificação ISO 8601 diferença de tempo", <a href="https://docs.pydantic.dev/latest/concepts/serialization/" class="external-link" target="_blank">cheque a documentação para mais informações</a>.
 * `frozenset`:
     * Em requisições e respostas, será tratado da mesma forma que um `set`:
         * Nas requisições, uma lista será lida, eliminando duplicadas e convertendo-a em um `set`.
@@ -49,7 +49,7 @@ Aqui estão alguns dos tipos de dados adicionais que você pode usar:
 * `Decimal`:
     * O `Decimal` padrão do Python.
     * Em requisições e respostas será representado como um `float`.
-* Você pode checar todos os tipos de dados válidos do Pydantic aqui: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Tipos de dados do Pydantic</a>.
+* Você pode checar todos os tipos de dados válidos do Pydantic aqui: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Tipos de dados do Pydantic</a>.
 
 ## Exemplo
 
index 1343a3ae482d4ddcff5a6c01a55be1d96a0ffc0c..3b1f6ee54b5ae5a238e77a26ea809f57b28bde00 100644 (file)
@@ -179,7 +179,7 @@ Isso será definido no OpenAPI com `anyOf`.
 Para fazer isso, use a dica de tipo padrão do Python <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
 
 !!! note
-    Ao definir um <a href="https://pydantic-docs.helpmanual.io/usage/types/#unions" class="external-link" target="_blank">`Union`</a>, inclua o tipo mais específico primeiro, seguido pelo tipo menos específico. No exemplo abaixo, o tipo mais específico `PlaneItem` vem antes de `CarItem` em `Union[PlaneItem, CarItem]`.
+    Ao definir um <a href="https://docs.pydantic.dev/latest/concepts/types/#unions" class="external-link" target="_blank">`Union`</a>, inclua o tipo mais específico primeiro, seguido pelo tipo menos específico. No exemplo abaixo, o tipo mais específico `PlaneItem` vem antes de `CarItem` em `Union[PlaneItem, CarItem]`.
 
 === "Python 3.8 and above"
 
index 97a2e3eac953147462081e8bccab678db3abc567..d9f3d67821b61f521e8b2cc08d43f4dd9d1832f6 100644 (file)
@@ -160,7 +160,7 @@ path -> item_id
 !!! warning "Aviso"
     Você pode pular estes detalhes técnicos caso eles não sejam importantes para você neste momento.
 
-`RequestValidationError` é uma subclasse do <a href="https://pydantic-docs.helpmanual.io/#error-handling" class="external-link" target="_blank">`ValidationError`</a> existente no Pydantic.
+`RequestValidationError` é uma subclasse do <a href="https://docs.pydantic.dev/latest/#error-handling" class="external-link" target="_blank">`ValidationError`</a> existente no Pydantic.
 
 **FastAPI** faz uso dele para que você veja o erro no seu log, caso você utilize um modelo de Pydantic em `response_model`, e seus dados tenham erro.
 
index cd8c188584da9efb89f041625bb912dd2645e661..be2b7f7a453090e9c7f1b9262abe51064e56fc2f 100644 (file)
@@ -93,7 +93,7 @@ Da mesma forma, existem muitas ferramentas compatíveis. Incluindo ferramentas d
 
 ## Pydantic
 
-Toda a validação de dados é feita por baixo dos panos pelo <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>, então você tem todos os benefícios disso. E assim você sabe que está em boas mãos.
+Toda a validação de dados é feita por baixo dos panos pelo <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>, então você tem todos os benefícios disso. E assim você sabe que está em boas mãos.
 
 Você pode usar as mesmas declarações de tipo com `str`, `float`, `bool` e muitos outros tipos complexos de dados.
 
index 0355450fa8b99b7d228d5198e7dd98dadada7e5e..d04dc1a26314b4ecc916a9ad89f1645e589a4d5c 100644 (file)
@@ -6,7 +6,7 @@ Aqui estão várias formas de se fazer isso.
 
 ## `schema_extra` do Pydantic
 
-Você pode declarar um `example` para um modelo Pydantic usando `Config` e `schema_extra`, conforme descrito em <a href="https://pydantic-docs.helpmanual.io/usage/schema/#schema-customization" class="external-link" target="_blank">Documentação do Pydantic: Schema customization</a>:
+Você pode declarar um `example` para um modelo Pydantic usando `Config` e `schema_extra`, conforme descrito em <a href="https://docs.pydantic.dev/latest/concepts/json_schema/#schema-customization" class="external-link" target="_blank">Documentação do Pydantic: Schema customization</a>:
 
 ```Python hl_lines="15-23"
 {!../../../docs_src/schema_extra_example/tutorial001.py!}
index 9e3c497d10b4166aa7af99328827500759f4af46..24a45fa55fa21437b7ca8a84d8ced796d9ccb51c 100644 (file)
@@ -384,7 +384,7 @@ Hug был одним из первых фреймворков, реализов
 
 ## Что используется в **FastAPI**
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydantic - это библиотека для валидации данных, сериализации и документирования (используя JSON Schema), основываясь на подсказках типов Python, что делает его чрезвычайно интуитивным.
 
index d67a9654b12981bb01729cdf5e28f2b82d6a002d..110c7d31e128aa09eb85ea953d7d3fe86d75516d 100644 (file)
@@ -177,7 +177,7 @@ FastAPI включает в себя чрезвычайно простую в и
 
 ## Особенности и возможности Pydantic
 
-**FastAPI** основан на <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a> и полностью совместим с ним. Так что, любой дополнительный код Pydantic, который у вас есть, будет также работать.
+**FastAPI** основан на <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> и полностью совместим с ним. Так что, любой дополнительный код Pydantic, который у вас есть, будет также работать.
 
 Включая внешние библиотеки, также основанные на Pydantic, такие как: <abbr title="Object-Relational Mapper">ORM'ы</abbr>, <abbr title="Object-Document Mapper">ODM'ы</abbr> для баз данных.
 
index 2a5e428b1b10cfc4036f22c72e1639ec782b4cc0..e9572a6d6e3ec19a6ce0d213da42ac7acc39a64c 100644 (file)
@@ -52,7 +52,7 @@
 
 ## Зависимости
 
-Протестировав несколько вариантов, я решил, что в качестве основы буду использовать <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a> и его преимущества.
+Протестировав несколько вариантов, я решил, что в качестве основы буду использовать <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a> и его преимущества.
 
 По моим предложениям был изменён код этого фреймворка, чтобы сделать его полностью совместимым с JSON Schema, поддержать различные способы определения ограничений и улучшить помощь редакторов (проверки типов, автозаполнение).
 
index 6e88b496f6acaed166081b2854d162cf24dce29a..477567af69df46bbb3e2e856f573b4c4f29987ac 100644 (file)
@@ -114,7 +114,7 @@ Python 3.8+
 FastAPI стоит на плечах гигантов:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> для части связанной с вебом.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> для части связанной с данными.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> для части связанной с данными.
 
 ## Установка
 
index 7523083c8831955b89eb6a24d6f5f1f254fb1fee..3c8492c67bb26feb0675381d5211b244ecd76aff 100644 (file)
@@ -265,7 +265,7 @@ John Doe
 
 ## Pydantic-модели
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> является Python-библиотекой для выполнения валидации данных.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> является Python-библиотекой для выполнения валидации данных.
 
 Вы объявляете «форму» данных как классы с атрибутами.
 
@@ -282,7 +282,7 @@ John Doe
 ```
 
 !!! info
-    Чтобы узнать больше о <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic, читайте его документацию</a>.
+    Чтобы узнать больше о <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, читайте его документацию</a>.
 
 **FastAPI** целиком основан на Pydantic.
 
index bbf9b768597c1f580454667c027dd05e40901779..51a32ba5672e077cff923df4506efac8d100d945 100644 (file)
@@ -192,7 +192,7 @@ my_list: List[str]
 
 Помимо обычных простых типов, таких как `str`, `int`, `float`, и т.д. Вы можете использовать более сложные базовые типы, которые наследуются от типа `str`.
 
-Чтобы увидеть все варианты, которые у вас есть, ознакомьтесь с документацией <a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">по необычным типам Pydantic</a>. Вы увидите некоторые примеры в следующей главе.
+Чтобы увидеть все варианты, которые у вас есть, ознакомьтесь с документацией <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">по необычным типам Pydantic</a>. Вы увидите некоторые примеры в следующей главе.
 
 Например, так как в модели `Image` у нас есть поле `url`, то мы можем объявить его как тип `HttpUrl` из модуля Pydantic вместо типа `str`:
 
index c03d40c3fb34eede4013ff25e1f44b5cfa226a8b..96f80af0607ecfa6bfab785553ee77af9248c824 100644 (file)
@@ -6,7 +6,7 @@
 
 Ваш API почти всегда отправляет тело **ответа**. Но клиентам не обязательно всегда отправлять тело **запроса**.
 
-Чтобы объявить тело **запроса**, необходимо использовать модели <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>, со всей их мощью и преимуществами.
+Чтобы объявить тело **запроса**, необходимо использовать модели <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>, со всей их мощью и преимуществами.
 
 !!! info "Информация"
     Чтобы отправить данные, необходимо использовать один из методов: `POST` (обычно), `PUT`, `DELETE` или `PATCH`.
index 0f613a6b29b57f8aac9dd9ba40d1664e35fe9b12..d4727e2d4d015e618ef9e70b5334690061e1de10 100644 (file)
@@ -36,7 +36,7 @@
 * `datetime.timedelta`:
     * Встроенный в Python `datetime.timedelta`.
     * В запросах и ответах будет представлен в виде общего количества секунд типа `float`.
-    * Pydantic также позволяет представить его как "Кодировку разницы во времени ISO 8601", <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#json_encoders" class="external-link" target="_blank">см. документацию для получения дополнительной информации</a>.
+    * Pydantic также позволяет представить его как "Кодировку разницы во времени ISO 8601", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#json_encoders" class="external-link" target="_blank">см. документацию для получения дополнительной информации</a>.
 * `frozenset`:
     * В запросах и ответах обрабатывается так же, как и `set`:
         * В запросах будет прочитан список, исключены дубликаты и преобразован в `set`.
@@ -49,7 +49,7 @@
 * `Decimal`:
     * Встроенный в Python `Decimal`.
     * В запросах и ответах обрабатывается так же, как и `float`.
-* Вы можете проверить все допустимые типы данных pydantic здесь: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Типы данных Pydantic</a>.
+* Вы можете проверить все допустимые типы данных pydantic здесь: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Типы данных Pydantic</a>.
 
 ## Пример
 
index 30176b4e3c3bc6e4a6fa734b63d609f6f97ecc4d..78855313da8ce33b1918d438e4e722813a290d69 100644 (file)
@@ -179,7 +179,7 @@ UserInDB(
 Для этого используйте стандартные аннотации типов в Python <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
 
 !!! note "Примечание"
-    При объявлении <a href="https://pydantic-docs.helpmanual.io/usage/types/#unions" class="external-link" target="_blank">`Union`</a>, сначала указывайте наиболее детальные типы, затем менее детальные. В примере ниже более детальный `PlaneItem` стоит перед `CarItem` в `Union[PlaneItem, CarItem]`.
+    При объявлении <a href="https://docs.pydantic.dev/latest/concepts/types/#unions" class="external-link" target="_blank">`Union`</a>, сначала указывайте наиболее детальные типы, затем менее детальные. В примере ниже более детальный `PlaneItem` стоит перед `CarItem` в `Union[PlaneItem, CarItem]`.
 
 === "Python 3.10+"
 
index f578cf1983935e88d38176845c6a242afca3a522..40b6f9bc4a1527a360476247325b856f18262f51 100644 (file)
@@ -163,7 +163,7 @@ path -> item_id
 !!! warning "Внимание"
     Это технические детали, которые можно пропустить, если они не важны для вас сейчас.
 
-`RequestValidationError` является подклассом Pydantic <a href="https://pydantic-docs.helpmanual.io/usage/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>.
+`RequestValidationError` является подклассом Pydantic <a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>.
 
 **FastAPI** использует его для того, чтобы, если вы используете Pydantic-модель в `response_model`, и ваши данные содержат ошибку, вы увидели ошибку в журнале.
 
index 55b498ef0acd2ca9ca8b9314f77328aa799b43e2..1241e0919d046fd8876282b8b74ccce39773b87a 100644 (file)
@@ -93,7 +93,7 @@
 
 ## Pydantic
 
-Вся проверка данных выполняется под капотом с помощью <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>. Поэтому вы можете быть уверены в качестве обработки данных.
+Вся проверка данных выполняется под капотом с помощью <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>. Поэтому вы можете быть уверены в качестве обработки данных.
 
 Вы можете использовать в аннотациях как простые типы данных, вроде `str`, `float`, `bool`, так и более сложные типы.
 
index cc826b8711a9c7da22771f07ebfef4389aef7819..108aefefc5db577a09de7dc1efbeb61a66affe7b 100644 (file)
@@ -479,7 +479,7 @@ q: Union[str, None] = None
     ```
 
 !!! tip "Подсказка"
-    Pydantic, мощь которого используется в FastAPI для валидации и сериализации, имеет специальное поведение для `Optional` или `Union[Something, None]` без значения по умолчанию. Вы можете узнать об этом больше в документации Pydantic, раздел <a href="https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields" class="external-link" target="_blank">Обязательные Опциональные поля</a>.
+    Pydantic, мощь которого используется в FastAPI для валидации и сериализации, имеет специальное поведение для `Optional` или `Union[Something, None]` без значения по умолчанию. Вы можете узнать об этом больше в документации Pydantic, раздел <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">Обязательные Опциональные поля</a>.
 
 ### Использование Pydantic's `Required` вместо Ellipsis (`...`)
 
index 38b45e2a574b2befb36f7fe00e9f90b8233ba3f0..9b9b60dd5501a26adad614752f0038328e9d46b5 100644 (file)
@@ -377,7 +377,7 @@ FastAPI совместно с Pydantic выполнит некоторую ма
 ```
 
 !!! info "Информация"
-    "Под капотом" FastAPI использует метод `.dict()` у объектов моделей Pydantic <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">с параметром `exclude_unset`</a>, чтобы достичь такого эффекта.
+    "Под капотом" FastAPI использует метод `.dict()` у объектов моделей Pydantic <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">с параметром `exclude_unset`</a>, чтобы достичь такого эффекта.
 
 !!! info "Информация"
     Вы также можете использовать:
@@ -385,7 +385,7 @@ FastAPI совместно с Pydantic выполнит некоторую ма
     * `response_model_exclude_defaults=True`
     * `response_model_exclude_none=True`
 
-    как описано в <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">документации Pydantic</a> для параметров `exclude_defaults` и `exclude_none`.
+    как описано в <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">документации Pydantic</a> для параметров `exclude_defaults` и `exclude_none`.
 
 #### Если значение поля отличается от значения по-умолчанию
 
index a13ab59354c49d5bf1f8906b01113ec4ea0e4534..e1011805af539f88b4dbffefae281005fab8382b 100644 (file)
@@ -6,7 +6,7 @@
 
 ## Pydantic `schema_extra`
 
-Вы можете объявить ключ `example` для модели Pydantic, используя класс `Config` и переменную `schema_extra`, как описано в <a href="https://pydantic-docs.helpmanual.io/usage/schema/#schema-customization" class="external-link" target="_blank">Pydantic документации: Настройка схемы</a>:
+Вы можете объявить ключ `example` для модели Pydantic, используя класс `Config` и переменную `schema_extra`, как описано в <a href="https://docs.pydantic.dev/latest/concepts/json_schema/#schema-customization" class="external-link" target="_blank">Pydantic документации: Настройка схемы</a>:
 
 === "Python 3.10+"
 
index 9c69503c9812ee33f1376cb327b2a7d7c4a9c39a..462d8b3046774f59fe02d774c82cd20547dd375e 100644 (file)
@@ -336,7 +336,7 @@ Artık APIStar, OpenAPI özelliklerini doğrulamak için bir dizi araç sunan bi
 
 ## **FastAPI** Tarafından Kullanılanlar
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydantic Python tip belirteçlerine dayanan; veri doğrulama, veri dönüştürme ve dökümantasyon tanımlamak (JSON Şema kullanarak) için bir kütüphanedir.
 
index ef4975c59e2ade293a729d85b97037cb4e682d1f..1cda8c7fbccda52b1c5e48965586f46858831236 100644 (file)
@@ -182,7 +182,7 @@ Bütün entegrasyonlar kullanımı kolay olmak üzere (zorunluluklar ile beraber
 
 ## Pydantic özellikleri
 
-**FastAPI** ile <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a> tamamiyle uyumlu ve üzerine kurulu. Yani FastAPI üzerine ekleme yapacağınız herhangi bir Pydantic kodu da çalışacaktır.
+**FastAPI** ile <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> tamamiyle uyumlu ve üzerine kurulu. Yani FastAPI üzerine ekleme yapacağınız herhangi bir Pydantic kodu da çalışacaktır.
 
 Bunlara Pydantic üzerine kurulu <abbr title="Object-Relational Mapper">ORM</abbr> databaseler ve , <abbr title="Object-Document Mapper">ODM</abbr> kütüphaneler de dahil olmak üzere.
 
index 950fcf37d7221c21a013d0a4a45bf818a0b1e9bb..1dd0e637f52b530dc74b559e627f6e7a14d08f0a 100644 (file)
@@ -54,7 +54,7 @@ Hepsi, tüm geliştiriciler için en iyi geliştirme deneyimini sağlayacak şek
 
 ## Gereksinimler
 
-Çeşitli alternatifleri test ettikten sonra, avantajlarından dolayı <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a>'i kullanmaya karar verdim.
+Çeşitli alternatifleri test ettikten sonra, avantajlarından dolayı <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a>'i kullanmaya karar verdim.
 
 Sonra, JSON Schema ile tamamen uyumlu olmasını sağlamak, kısıtlama bildirimlerini tanımlamanın farklı yollarını desteklemek ve birkaç editördeki testlere dayanarak editör desteğini (tip kontrolleri, otomatik tamamlama) geliştirmek için katkıda bulundum.
 
index fbde3637af0a9b0b6d5d431d9919ac6c5a0ef79c..afbb27f7dfc24e873724c4faab17464e9fbbde58 100644 (file)
@@ -120,7 +120,7 @@ Python 3.8+
 FastAPI iki devin omuzları üstünde duruyor:
 
 * Web tarafı için <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>.
-* Data tarafı için <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>.
+* Data tarafı için <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>.
 
 ## Kurulum
 
index 3b9ab905079e51aa8b8d6b0456755a2a075b6d29..a0d32c86e5cc653cf1e424d7a9fee7ec89c5e863 100644 (file)
@@ -265,7 +265,7 @@ Ve yine bütün editör desteğini alırsınız:
 
 ## Pydantic modelleri
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> veri doğrulaması yapmak için bir Python kütüphanesidir.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> veri doğrulaması yapmak için bir Python kütüphanesidir.
 
 Verilerin "biçimini" niteliklere sahip sınıflar olarak düzenlersiniz.
 
@@ -282,7 +282,7 @@ Resmi Pydantic dokümanlarından alınmıştır:
 ```
 
 !!! info
-    Daha fazla şey öğrenmek için <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic'i takip edin</a>.
+    Daha fazla şey öğrenmek için <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic'i takip edin</a>.
 
 **FastAPI** tamamen Pydantic'e dayanmaktadır.
 
index cfcf881fd53c6413cb34fcb19430d3a9b7820dc5..c19023645201c0423fad0813c9123cf0257aae1e 100644 (file)
@@ -95,7 +95,7 @@ Aynı şekilde, farklı diller için kod türetme araçları da dahil olmak üze
 
 ## Pydantic
 
-Tüm veri doğrulamaları <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> tarafından arka planda gerçekleştirilir, bu sayede tüm avantajlardan faydalanabilirsiniz. Böylece, emin ellerde olduğunuzu hissedebilirsiniz.
+Tüm veri doğrulamaları <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> tarafından arka planda gerçekleştirilir, bu sayede tüm avantajlardan faydalanabilirsiniz. Böylece, emin ellerde olduğunuzu hissedebilirsiniz.
 
 Aynı tip tanımlamalarını `str`, `float`, `bool` ve diğer karmaşık veri tipleri ile kullanma imkanınız vardır.
 
index e7125797699063fc8669747d16adde146c614097..bdb62513e0dabbe867faaeace3c881acf2d08718 100644 (file)
@@ -340,7 +340,7 @@ Hug був одним із перших фреймворків, який реа
 
 ## Використовується **FastAPI**
 
-### <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a>
+### <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>
 
 Pydantic — це бібліотека для визначення перевірки даних, серіалізації та документації (за допомогою схеми JSON) на основі підказок типу Python.
 
index afcaa89187035d5dc8562b5ff13d43d1b04ccadb..32f1f544a23f4066fad311a4e0b9cbb801eb5fdc 100644 (file)
@@ -115,7 +115,7 @@ Python 3.8+
 FastAPI стоїть на плечах гігантів:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> для web частини.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> для частини даних.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> для частини даних.
 
 ## Вставновлення
 
index 6c8e2901688edf8f9228b20b19f3331c26aedb4f..e767db2fbc223c450b5c2f7b296d8e3c79881f19 100644 (file)
@@ -385,7 +385,7 @@ John Doe
 
 ## Pydantic моделі
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> це бібліотека Python для валідації даних.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> це бібліотека Python для валідації даних.
 
 Ви оголошуєте «форму» даних як класи з атрибутами.
 
@@ -416,7 +416,7 @@ John Doe
     ```
 
 !!! info
-    Щоб дізнатись більше про <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic, перегляньте його документацію</a>.
+    Щоб дізнатись більше про <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, перегляньте його документацію</a>.
 
 **FastAPI** повністю базується на Pydantic.
 
index 9759e7f45046bebdb92ce9b1b070e3991603087e..11e94e929935d17aa9973fb8794df945dd45bc1b 100644 (file)
@@ -6,7 +6,7 @@
 
 Ваш API майже завжди має надсилати тіло **відповіді**. Але клієнтам не обов’язково потрібно постійно надсилати тіла **запитів**.
 
-Щоб оголосити тіло **запиту**, ви використовуєте <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> моделі з усією їх потужністю та перевагами.
+Щоб оголосити тіло **запиту**, ви використовуєте <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> моделі з усією їх потужністю та перевагами.
 
 !!! info
     Щоб надіслати дані, ви повинні використовувати один із: `POST` (більш поширений), `PUT`, `DELETE` або `PATCH`.
index ec5ec0d18fa217a89c4fae332266cc193462d43a..01852803ad0b9f1dd6411b24e0d0a5ae78a1597e 100644 (file)
@@ -36,7 +36,7 @@
 * `datetime.timedelta`:
     * Пайтонівський `datetime.timedelta`.
     * У запитах та відповідях буде представлений як `float` загальної кількості секунд.
-    * Pydantic також дозволяє представляти це як "ISO 8601 time diff encoding", <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#json_encoders" class="external-link" target="_blank">більше інформації дивись у документації</a>.
+    * Pydantic також дозволяє представляти це як "ISO 8601 time diff encoding", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#json_encoders" class="external-link" target="_blank">більше інформації дивись у документації</a>.
 * `frozenset`:
     * У запитах і відповідях це буде оброблено так само, як і `set`:
         * У запитах список буде зчитано, дублікати будуть видалені та він буде перетворений на `set`.
@@ -49,7 +49,7 @@
 * `Decimal`:
     * Стандартний Пайтонівський `Decimal`.
     * У запитах і відповідях це буде оброблено так само, як і `float`.
-* Ви можете перевірити всі дійсні типи даних Pydantic тут: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">типи даних Pydantic</a>.
+* Ви можете перевірити всі дійсні типи даних Pydantic тут: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">типи даних Pydantic</a>.
 
 ## Приклад
 
index 306aeb35950f32e70f717344c34418d6961f1798..9edb1c8fa2b91559722aab7e89f045b7e6c35085 100644 (file)
@@ -172,7 +172,7 @@ Với **FastAPI**, bạn có được tất cả những tính năng của **Sta
 
 ## Tính năng của Pydantic
 
-**FastAPI** tương thích đầy đủ với (và dựa trên) <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Do đó, bất kì code Pydantic nào bạn thêm vào cũng sẽ hoạt động.
+**FastAPI** tương thích đầy đủ với (và dựa trên) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Do đó, bất kì code Pydantic nào bạn thêm vào cũng sẽ hoạt động.
 
 Bao gồm các thư viện bên ngoài cũng dựa trên Pydantic, như <abbr title="Object-Relational Mapper">ORM</abbr>s, <abbr title="Object-Document Mapper">ODM</abbr>s cho cơ sở dữ liệu.
 
index a3dec4be749207abf5be8bb71ba59417301ed1c2..3ade853e2838fd198743be6097035a83df6d2838 100644 (file)
@@ -121,7 +121,7 @@ Python 3.8+
 FastAPI đứng trên vai những người khổng lồ:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> cho phần web.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> cho phần data.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> cho phần data.
 
 ## Cài đặt
 
index 4999caac3496bc68e23d77426ee0d074407a4548..b2a399aa5e5f071cf8e1253633dc2c683a0e54d1 100644 (file)
@@ -440,7 +440,7 @@ Nó không có nghĩa "`one_person`" là một **lớp** gọi là `Person`.
 
 ## Pydantic models
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> là một thư viện Python để validate dữ liệu hiệu năng cao.
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> là một thư viện Python để validate dữ liệu hiệu năng cao.
 
 Bạn có thể khai báo "hình dạng" của dữa liệu như là các lớp với các thuộc tính.
 
@@ -471,14 +471,14 @@ Một ví dụ từ tài liệu chính thức của Pydantic:
     ```
 
 !!! info
-    Để học nhiều hơn về <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic, tham khảo tài liệu của nó</a>.
+    Để học nhiều hơn về <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, tham khảo tài liệu của nó</a>.
 
 **FastAPI** được dựa hoàn toàn trên Pydantic.
 
 Bạn sẽ thấy nhiều ví dụ thực tế hơn trong [Hướng dẫn sử dụng](tutorial/index.md){.internal-link target=_blank}.
 
 !!! tip
-    Pydantic có một hành vi đặc biệt khi bạn sử dụng `Optional` hoặc `Union[Something, None]` mà không có giá trị mặc dịnh, bạn có thể đọc nhiều hơn về nó trong tài liệu của Pydantic về <a href="https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields" class="external-link" target="_blank">Required Optional fields</a>.
+    Pydantic có một hành vi đặc biệt khi bạn sử dụng `Optional` hoặc `Union[Something, None]` mà không có giá trị mặc dịnh, bạn có thể đọc nhiều hơn về nó trong tài liệu của Pydantic về <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">Required Optional fields</a>.
 
 
 ## Type Hints với Metadata Annotations
index 9e844d44eac8aaf6177cb0ab729510de03d4c647..5684f0a6a2b9328cfd0c65d9f18188bfa3159f0a 100644 (file)
@@ -120,7 +120,7 @@ Python 3.8+
 FastAPI dúró lórí àwọn èjìká tí àwọn òmíràn:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> fún àwọn ẹ̀yà ayélujára.
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> fún àwọn ẹ̀yà àkójọf'áyẹ̀wò.
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> fún àwọn ẹ̀yà àkójọf'áyẹ̀wò.
 
 ## Fifi sórí ẹrọ
 
index eec12dfae04050abe2a6cfa59c954a952307d425..9859d3c518670b017ddf8f4ddad3a83bf1f4e031 100644 (file)
@@ -120,7 +120,7 @@ Python 3.8+
 FastAPI 是站在以下巨人的肩膀上:
 
 - <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> 負責網頁的部分
-- <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 負責資料的部分
+- <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 負責資料的部分
 
 ## 安裝
 
index 76070fb7faea0354d7e64ec8ba0d4b00a88cc865..d793b9c7fd1cfe579243defd64988bbf98389885 100644 (file)
@@ -127,7 +127,7 @@ Hello World from Python
 
 ## Pydantic 的 `Settings`
 
-幸运的是,Pydantic 提供了一个很好的工具来处理来自环境变量的设置,即<a href="https://pydantic-docs.helpmanual.io/usage/settings/" class="external-link" target="_blank">Pydantic: Settings management</a>。
+幸运的是,Pydantic 提供了一个很好的工具来处理来自环境变量的设置,即<a href="https://docs.pydantic.dev/latest/concepts/pydantic_settings/" class="external-link" target="_blank">Pydantic: Settings management</a>。
 
 ### 创建 `Settings` 对象
 
@@ -314,7 +314,7 @@ APP_NAME="ChimichangApp"
 在这里,我们在 Pydantic 的 `Settings` 类中创建了一个名为 `Config` 的类,并将 `env_file` 设置为我们想要使用的 dotenv 文件的文件名。
 
 !!! tip
-    `Config` 类仅用于 Pydantic 配置。您可以在<a href="https://pydantic-docs.helpmanual.io/usage/model_config/" class="external-link" target="_blank">Pydantic Model Config</a>中阅读更多相关信息。
+    `Config` 类仅用于 Pydantic 配置。您可以在<a href="https://docs.pydantic.dev/latest/api/config/" class="external-link" target="_blank">Pydantic Model Config</a>中阅读更多相关信息。
 
 ### 使用 `lru_cache` 仅创建一次 `Settings`
 
index 9fba24814dacfce24a53b678cf7e703c5e604a22..d8190032f62333826a95b2ee284f705703a9c37a 100644 (file)
@@ -179,7 +179,7 @@ FastAPI 有一个使用非常简单,但是非常强大的<abbr title='也叫
 
 ## Pydantic 特性
 
-**FastAPI** 和 <a href="https://pydantic-docs.helpmanual.io" class="external-link" target="_blank"><strong>Pydantic</strong></a> 完全兼容(并基于)。所以,你有的其他的 Pydantic 代码也能正常工作。
+**FastAPI** 和 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> 完全兼容(并基于)。所以,你有的其他的 Pydantic 代码也能正常工作。
 
 兼容包括基于 Pydantic 的外部库, 例如用与数据库的 <abbr title="对象关系映射">ORM</abbr>s, <abbr title="对象文档映射">ODM</abbr>s。
 
index 56a15d0037802228df345ae7621efd7218c16cb7..798b8fb5f45929fda8d190b5d591f61190032996 100644 (file)
@@ -53,7 +53,7 @@
 
 ## 需求项
 
-经过测试多种备选方案,我最终决定使用  <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">**Pydantic**</a>,并充分利用它的优势。
+经过测试多种备选方案,我最终决定使用  <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a>,并充分利用它的优势。
 
 我甚至为它做了不少贡献,让它完美兼容了 JSON Schema,支持多种方式定义约束声明,并基于多个编辑器,改进了它对编辑器支持(类型检查、自动补全)。
 
index 7451d1072eeb3e847723bcb4413290f6187ab013..a480d6640783c188b602b6ef016e1dff9f4357a1 100644 (file)
@@ -112,7 +112,7 @@ Python 3.8 及更高版本
 FastAPI 站在以下巨人的肩膀之上:
 
 * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> 负责 web 部分。
-* <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 负责数据部分。
+* <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 负责数据部分。
 
 ## 安装
 
index 6cdb4b58838d7ee6b8cdd2b3e478e03e03bc8a5b..214b47611e80445a2d31a37ffaf22c8868500e3c 100644 (file)
@@ -237,7 +237,7 @@ John Doe
 
 ## Pydantic 模型
 
-<a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 是一个用来用来执行数据校验的 Python 库。
+<a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 是一个用来用来执行数据校验的 Python 库。
 
 你可以将数据的"结构"声明为具有属性的类。
 
@@ -254,7 +254,7 @@ John Doe
 ```
 
 !!! info
-    想进一步了解 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic,请阅读其文档</a>.
+    想进一步了解 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic,请阅读其文档</a>.
 
 整个 **FastAPI** 建立在 Pydantic 的基础之上。
 
index c65308bef74bae9ac195d172cf0b14561334a62b..3f519ae33a16b3847c50cc79c62f184fb1909464 100644 (file)
@@ -182,7 +182,7 @@ Pydantic 模型的每个属性都具有类型。
 
 除了普通的单一值类型(如 `str`、`int`、`float` 等)外,你还可以使用从 `str` 继承的更复杂的单一值类型。
 
-要了解所有的可用选项,请查看关于 <a href="https://pydantic-docs.helpmanual.io/usage/types/" class="external-link" target="_blank">来自 Pydantic 的外部类型</a> 的文档。你将在下一章节中看到一些示例。
+要了解所有的可用选项,请查看关于 <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">来自 Pydantic 的外部类型</a> 的文档。你将在下一章节中看到一些示例。
 
 例如,在 `Image` 模型中我们有一个 `url` 字段,我们可以把它声明为 Pydantic 的 `HttpUrl`,而不是 `str`:
 
index 5cf53c0c289d67c03e7efd32169bb1b503249924..3d615be399d86616cae7e3c7a40574e368600632 100644 (file)
@@ -6,7 +6,7 @@
 
 你的 API 几乎总是要发送**响应**体。但是客户端并不总是需要发送**请求**体。
 
-我们使用 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 模型来声明**请求**体,并能够获得它们所具有的所有能力和优点。
+我们使用 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 模型来声明**请求**体,并能够获得它们所具有的所有能力和优点。
 
 !!! info
     你不能使用 `GET` 操作(HTTP 方法)发送请求体。
index f4a77050ca6e0d1eff7b81b35993498f4581d692..cf39de0dd8e048a089c68a8443102c9f16a5f9cc 100644 (file)
@@ -36,7 +36,7 @@
 * `datetime.timedelta`:
     * 一个 Python `datetime.timedelta`.
     * 在请求和响应中将表示为 `float` 代表总秒数。
-    * Pydantic 也允许将其表示为 "ISO 8601 时间差异编码", <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#json_encoders" class="external-link" target="_blank">查看文档了解更多信息</a>。
+    * Pydantic 也允许将其表示为 "ISO 8601 时间差异编码", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#json_encoders" class="external-link" target="_blank">查看文档了解更多信息</a>。
 * `frozenset`:
     * 在请求和响应中,作为 `set` 对待:
         * 在请求中,列表将被读取,消除重复,并将其转换为一个 `set`。
@@ -49,7 +49,7 @@
 * `Decimal`:
     * 标准的 Python `Decimal`。
     * 在请求和响应中被当做 `float` 一样处理。
-* 您可以在这里检查所有有效的pydantic数据类型: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Pydantic data types</a>.
+* 您可以在这里检查所有有效的pydantic数据类型: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic data types</a>.
 
 ## 例子
 
index 06427a73d43ab0f7fb0b4156e76c88f6aabee752..f89d58dd12c6cf43f770431624d9b5ba0ea8ed73 100644 (file)
@@ -180,7 +180,7 @@ UserInDB(
 
 
 !!! note
-    定义一个 <a href="https://pydantic-docs.helpmanual.io/usage/types/#unions" class="external-link" target="_blank">`Union`</a> 类型时,首先包括最详细的类型,然后是不太详细的类型。在下面的示例中,更详细的 `PlaneItem` 位于 `Union[PlaneItem,CarItem]` 中的 `CarItem` 之前。
+    定义一个 <a href="https://docs.pydantic.dev/latest/concepts/types/#unions" class="external-link" target="_blank">`Union`</a> 类型时,首先包括最详细的类型,然后是不太详细的类型。在下面的示例中,更详细的 `PlaneItem` 位于 `Union[PlaneItem,CarItem]` 中的 `CarItem` 之前。
 
 === "Python 3.10+"
 
index a0d66e557c040ae54078bb83387b9b04be583e08..701cd241e40fa05791dd4d28165483af93330a23 100644 (file)
@@ -179,7 +179,7 @@ path -> item_id
     如果您觉得现在还用不到以下技术细节,可以先跳过下面的内容。
 
 
-`RequestValidationError` 是 Pydantic 的 <a href="https://pydantic-docs.helpmanual.io/usage/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a> 的子类。
+`RequestValidationError` 是 Pydantic 的 <a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a> 的子类。
 
 **FastAPI** 调用的就是 `RequestValidationError` 类,因此,如果在 `response_model` 中使用 Pydantic 模型,且数据有错误时,在日志中就会看到这个错误。
 
index 1b428d66271124c7e4aa12b9884e2fad66c8cbcf..5bb4eba8054d407e31aa64c61f2dcb5611a94542 100644 (file)
@@ -93,7 +93,7 @@
 
 ## Pydantic
 
-所有的数据校验都由 <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> 在幕后完成,所以你可以从它所有的优点中受益。并且你知道它在这方面非常胜任。
+所有的数据校验都由 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> 在幕后完成,所以你可以从它所有的优点中受益。并且你知道它在这方面非常胜任。
 
 你可以使用同样的类型声明来声明 `str`、`float`、`bool` 以及许多其他的复合数据类型。
 
index 39253eb0d48b13f3d465a16527f6d15a6b6e84de..af0428837e2fa81c368deb53621e63b827c2a95d 100644 (file)
@@ -152,7 +152,7 @@ q: Union[str, None] = Query(default=None, min_length=3)
 ```
 
 !!! tip
-    Pydantic 是 FastAPI 中所有数据验证和序列化的核心,当你在没有设默认值的情况下使用 `Optional` 或 `Union[Something, None]` 时,它具有特殊行为,你可以在 Pydantic 文档中阅读有关<a href="https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields" class="external-link" target="_blank">必需可选字段</a>的更多信息。
+    Pydantic 是 FastAPI 中所有数据验证和序列化的核心,当你在没有设默认值的情况下使用 `Optional` 或 `Union[Something, None]` 时,它具有特殊行为,你可以在 Pydantic 文档中阅读有关<a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">必需可选字段</a>的更多信息。
 
 ### 使用Pydantic中的`Required`代替省略号(`...`)
 
index e731b6989e491376071971ca01cd112f151c8a7c..0f1b3b4b919a4fd57948a03c4929428ff33523e8 100644 (file)
@@ -160,7 +160,7 @@ FastAPI 将使用此 `response_model` 来:
 ```
 
 !!! info
-    FastAPI 通过 Pydantic 模型的 `.dict()` 配合 <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">该方法的 `exclude_unset` 参数</a> 来实现此功能。
+    FastAPI 通过 Pydantic 模型的 `.dict()` 配合 <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">该方法的 `exclude_unset` 参数</a> 来实现此功能。
 
 !!! info
     你还可以使用:
@@ -168,7 +168,7 @@ FastAPI 将使用此 `response_model` 来:
     * `response_model_exclude_defaults=True`
     * `response_model_exclude_none=True`
 
-    参考 <a href="https://pydantic-docs.helpmanual.io/usage/exporting_models/#modeldict" class="external-link" target="_blank">Pydantic 文档</a> 中对 `exclude_defaults` 和 `exclude_none` 的描述。
+    参考 <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank">Pydantic 文档</a> 中对 `exclude_defaults` 和 `exclude_none` 的描述。
 
 #### 默认值字段有实际值的数据
 
index ebc04da8b481a94ed9fcec4f716b538667438d43..ae204dc6107b2b066cc1b41a4000a1003a0c18e0 100644 (file)
@@ -8,7 +8,7 @@
 
 ## Pydantic `schema_extra`
 
-您可以使用 `Config` 和 `schema_extra` 为Pydantic模型声明一个示例,如<a href="https://pydantic-docs.helpmanual.io/usage/schema/#schema-customization" class="external-link" target="_blank">Pydantic 文档:定制 Schema </a>中所述:
+您可以使用 `Config` 和 `schema_extra` 为Pydantic模型声明一个示例,如<a href="https://docs.pydantic.dev/latest/concepts/json_schema/#schema-customization" class="external-link" target="_blank">Pydantic 文档:定制 Schema </a>中所述:
 
 === "Python 3.10+"
 
index c49374971eaa0ca07b2bd06af889045c1bf79fee..be0c765935ce805924dc1340c1a649e4a51c855a 100644 (file)
@@ -329,7 +329,7 @@ name: str
 
 现在,在用于查询的 Pydantic*模型*`Item`中`User`,添加一个内部`Config`类。
 
-此类[`Config`](https://pydantic-docs.helpmanual.io/usage/model_config/)用于为 Pydantic 提供配置。
+此类[`Config`](https://docs.pydantic.dev/latest/api/config/)用于为 Pydantic 提供配置。
 
 在`Config`类中,设置属性`orm_mode = True`。
 
index db87a9389d86902293428feb6794e20243602dcf..87c720364be44a42746228a18092bf928d78d02d 100644 (file)
@@ -6,4 +6,4 @@ app = FastAPI()
 
 @app.get("/pydantic", response_class=RedirectResponse, status_code=302)
 async def redirect_pydantic():
-    return "https://pydantic-docs.helpmanual.io/"
+    return "https://docs.pydantic.dev/"
index 51aa1833dece832e42b399ccc9b8bc95d8101254..2675f2a93c5ee3e9c363550a0aa05b40a0116eda 100644 (file)
@@ -8,7 +8,7 @@ client = TestClient(app)
 def test_redirect_status_code():
     response = client.get("/pydantic", follow_redirects=False)
     assert response.status_code == 302
-    assert response.headers["location"] == "https://pydantic-docs.helpmanual.io/"
+    assert response.headers["location"] == "https://docs.pydantic.dev/"
 
 
 def test_openapi_schema():