Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 395 for Pydantics (0.04 sec)

  1. docs/en/docs/tutorial/body-fields.md

    ## Import `Field` { #import-field }
    
    First, you have to import it:
    
    {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *}
    
    
    /// warning
    
    Notice that `Field` is imported directly from `pydantic`, not from `fastapi` as are all the rest (`Query`, `Path`, `Body`, etc).
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.3K 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>.
    
    ## 예시
    
    위의 몇몇 자료형을 매개변수로 사용하는 *경로 작동* 예시입니다.
    
    {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/request-form-models.md

    ///
    
    /// note
    
    This is supported since FastAPI version `0.113.0`. 🤓
    
    ///
    
    ## Pydantic Models for Forms { #pydantic-models-for-forms }
    
    You just need to declare a **Pydantic model** with the fields you want to receive as **form fields**, and then declare the parameter as `Form`:
    
    {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. 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`:
    
    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/request-form-models.md

    ///
    
    ## Pydantic 모델을 사용한 폼
    
    **폼 필드**로 받고 싶은 필드를 **Pydantic 모델**로 선언한 다음, 매개변수를 `Form`으로 선언하면 됩니다:
    
    {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *}
    
    **FastAPI**는 요청에서 받은 **폼 데이터**에서 **각 필드**에 대한 데이터를 **추출**하고 정의한 Pydantic 모델을 줍니다.
    
    ## 문서 확인하기
    
    문서 UI `/docs`에서 확인할 수 있습니다:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## 추가 폼 필드 금지하기
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:44:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/header-param-models.md

    # 헤더 매개변수 모델
    
    관련 있는 **헤더 매개변수** 그룹이 있는 경우, **Pydantic 모델**을 생성하여 선언할 수 있습니다.
    
    이를 통해 **여러 위치**에서 **모델을 재사용** 할 수 있고 모든 매개변수에 대한 유효성 검사 및 메타데이터를 한 번에 선언할 수도 있습니다. 😎
    
    /// note | 참고
    
    이 기능은 FastAPI 버전 `0.115.0` 이후부터 지원됩니다. 🤓
    
    ///
    
    ## Pydantic 모델을 사용한 헤더 매개변수
    
    **Pydantic 모델**에 필요한 **헤더 매개변수**를 선언한 다음, 해당 매개변수를 `Header`로 선언합니다:
    
    {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:45:39 UTC 2024
    - 2K 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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. 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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/cookie-param-models.md

    # 쿠키 매개변수 모델
    
    관련있는 **쿠키**들의 그룹이 있는 경우, **Pydantic 모델**을 생성하여 선언할 수 있습니다. 🍪
    
    이를 통해 **여러 위치**에서 **모델을 재사용** 할 수 있고 모든 매개변수에 대한 유효성 검사 및 메타데이터를 한 번에 선언할 수도 있습니다. 😍
    
    /// note | 참고
    
    이 기능은 FastAPI 버전 `0.115.0` 이후부터 지원됩니다. 🤓
    
    ///
    
    /// tip | 팁
    
    동일한 기술이 `Query`, `Cookie`, 그리고 `Header`에 적용됩니다. 😎
    
    ///
    
    ## Pydantic 모델을 사용한 쿠키
    
    **Pydantic 모델**에 필요한 **쿠키** 매개변수를 선언한 다음, 해당 매개변수를 `Cookie`로 선언합니다:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:47:02 UTC 2024
    - 3.4K 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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top