Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 849 for Pydantics (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top