- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 849 for Pydantics (0.15 sec)
-
docs/en/docs/tutorial/request-form-models.md
In some special use cases (probably not very common), you might want to **restrict** the form fields to only those declared in the Pydantic model. And **forbid** any **extra** fields. /// note This is supported since FastAPI version `0.114.0`. ๐ค /// You can use Pydantic's model configuration to `forbid` any `extra` fields: //// tab | Python 3.9+ ```Python hl_lines="12"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/extra-data-types.md
* ์์ฑ๋ ์คํค๋ง๋ ์ด๊ฒ์ด `binary` "ํ์"์ `str`์์ ๋ช ์ํฉ๋๋ค. * `Decimal`: * ํ์ค ํ์ด์ฌ์ `Decimal`. * ์์ฒญ๊ณผ ์๋ต์์ `float`์ ๋์ผํ๊ฒ ๋ค๋ค์ง๋๋ค. * ์ฌ๊ธฐ์์ ๋ชจ๋ ์ ํจํ pydantic ๋ฐ์ดํฐ ์๋ฃํ์ ํ์ธํ ์ ์์ต๋๋ค: <a href="https://docs.pydantic.dev/latest/usage/types/types/" class="external-link" target="_blank">Pydantic ๋ฐ์ดํฐ ์๋ฃํ</a>. ## ์์ ์์ ๋ช๋ช ์๋ฃํ์ ๋งค๊ฐ๋ณ์๋ก ์ฌ์ฉํ๋ *๊ฒฝ๋ก ์๋* ์์์ ๋๋ค. //// tab | Python 3.10+ ```Python hl_lines="1 3 12-16"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
``` //// /// info In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`. The examples here use `.dict()` for compatibility with Pydantic v1, but you should use `.model_dump()` instead if you can use Pydantic v2. /// ### About `**user_in.dict()` #### Pydantic's `.dict()` `user_in` is a Pydantic model of class `UserIn`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
To see all the options you have, checkout <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic's Type Overview</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`: //// tab | Python 3.10+ ```Python hl_lines="2 8"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-fields.md
//// `Field`๋ `Query`, `Path`์ `Body`์ ๊ฐ์ ๋ฐฉ์์ผ๋ก ๋์ํ๋ฉฐ, ๋ชจ๋ ๊ฐ์ ๋งค๊ฐ๋ณ์๋ค ๋ฑ์ ๊ฐ์ง๋๋ค. /// note | "๊ธฐ์ ์ ์ธ๋ถ์ฌํญ" ์ค์ ๋ก `Query`, `Path`๋ฑ, ์ฌ๋ฌ๋ถ์ด ์์ผ๋ก ๋ณผ ๋ค๋ฅธ ๊ฒ๋ค์ ๊ณตํต ํด๋์ค์ธ `Param` ํด๋์ค์ ์๋ธํด๋์ค ๊ฐ์ฒด๋ฅผ ๋ง๋๋๋ฐ, ๊ทธ ์์ฒด๋ก Pydantic์ `FieldInfo` ํด๋์ค์ ์๋ธํด๋์ค์ ๋๋ค. ๊ทธ๋ฆฌ๊ณ Pydantic์ `Field` ๋ํ `FieldInfo`์ ์ธ์คํด์ค๋ฅผ ๋ฐํํฉ๋๋ค. `Body` ๋ํ `FieldInfo`์ ์๋ธํด๋์ค ๊ฐ์ฒด๋ฅผ ์ง์ ์ ์ผ๋ก ๋ฐํํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ `Body` ํด๋์ค์ ์๋ธํด๋์ค์ธ ๊ฒ๋ค๋ ์ฌ๋ฌ๋ถ์ด ๋์ค์ ๋ณด๊ฒ๋ ๊ฒ์ ๋๋ค.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.2K bytes - Viewed (0) -
docs/de/docs/tutorial/extra-models.md
``` //// /// info In Pydantic v1 hieร diese Methode `.dict()`, in Pydantic v2 wurde sie deprecated (aber immer noch unterstรผtzt) und in `.model_dump()` umbenannt. Die Beispiele hier verwenden `.dict()` fรผr die Kompatibilitรคt mit Pydantic v1, Sie sollten jedoch stattdessen `.model_dump()` verwenden, wenn Sie Pydantic v2 verwenden kรถnnen. /// ### รber `**user_in.dict()`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/body.md
/// tip | "ํ" ๋ง์ฝ <a href="https://www.jetbrains.com/pycharm/" class="external-link" target="_blank">PyCharm</a>๋ฅผ ํธ์ง๊ธฐ๋ก ์ฌ์ฉํ๋ค๋ฉด, <a href="https://github.com/koxudaxi/pydantic-pycharm-plugin/" class="external-link" target="_blank">Pydantic PyCharm Plugin</a>์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ๋ค์ ์ฌํญ์ ํฌํจํด Pydantic ๋ชจ๋ธ์ ๋ํ ํธ์ง๊ธฐ ์ง์์ ํฅ์์ํต๋๋ค: * ์๋ ์์ฑ * ํ์ ํ์ธ * ๋ฆฌํฉํ ๋ง * ๊ฒ์ * ์ ๊ฒ /// ## ๋ชจ๋ธ ์ฌ์ฉํ๊ธฐ ํจ์ ์์์ ๋ชจ๋ธ ๊ฐ์ฒด์ ๋ชจ๋ ์ดํธ๋ฆฌ๋ทฐํธ์ ์ง์ ์ ๊ทผ ๊ฐ๋ฅํฉ๋๋ค:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/schema-extra-example.md
`"json_schema_extra"`๋ฅผ ์์ฑ๋ JSON ์คํค๋ง์์ ๋ณด์ฌ์ฃผ๊ณ ์ถ์ ๋ณ๋์ ๋ฐ์ดํฐ์ `examples`๋ฅผ ํฌํจํ๋ `dict`์ผ๋ก ์ค์ ํ ์ ์์ต๋๋ค. //// //// tab | Pydantic v1
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/ko/docs/index.md
![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png) ## ์์ ์ฌํ ์ด์ `PUT` ์์ฒญ์ ์๋ ๋ณธ๋ฌธ(Body)์ ๋ฐ๊ธฐ ์ํด `main.py`๋ฅผ ์์ ํด๋ด ์๋ค. Pydantic์ ์ด์ฉํด ํ์ด์ฌ ํ์ค ํ์ ์ผ๋ก ๋ณธ๋ฌธ์ ์ ์ธํฉ๋๋ค. ```Python hl_lines="4 9 10 11 12 25 26 27" from typing import Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 16 16:50:01 UTC 2024 - 19.4K bytes - Viewed (0) -
docs/nl/docs/features.md
* 100% van de code is getest. * 100% type geannoteerde codebase. ## Pydantic functionaliteit **FastAPI** is volledig verenigbaar met (en gebaseerd op) Pydantic. Dus alle extra <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> code die je nog hebt werkt ook.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 03 13:50:38 UTC 2024 - 10.1K bytes - Viewed (0)