Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 849 for Pydantic (0.17 sec)

  1. docs/em/docs/tutorial/encoder.md

    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `jsonable_encoder` ๐Ÿ‘ˆ.
    
    โšซ๏ธ ๐Ÿ“จ ๐ŸŽš, ๐Ÿ’– Pydantic ๐Ÿท, & ๐Ÿ“จ ๐ŸŽป ๐Ÿ”— โฌ:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="5  22"
    {!> ../../docs_src/encoder/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="4  21"
    {!> ../../docs_src/encoder/tutorial001_py310.py!}
    ```
    
    ////
    
    ๐Ÿ‘‰ ๐Ÿ–ผ, โšซ๏ธ ๐Ÿ”œ ๐Ÿ—œ Pydantic ๐Ÿท `dict`, & `datetime` `str`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dataclasses/test_tutorial002.py

                        "title": "Item",
                        "required": IsOneOf(
                            ["name", "price", "tags", "description", "tax"],
                            # TODO: remove when deprecating Pydantic v1
                            ["name", "price"],
                        ),
                        "type": "object",
                        "properties": {
                            "name": {"title": "Name", "type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. docs/de/docs/features.md

    ## Pydantic's Merkmale
    
    **FastAPI** ist vollkommen kompatibel (und basiert auf) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Das bedeutet, wenn Sie eigenen Pydantic Quellcode haben, funktioniert der.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 23:30:12 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/body-fields.md

    `Query`ใ‚„`Path`ใ€`Body`ใ‚’ไฝฟใฃใฆ *path operation้–ขๆ•ฐ* ใฎใƒ‘ใƒฉใƒกใƒผใ‚ฟใซ่ฟฝๅŠ ใฎใƒใƒชใƒ‡ใƒผใ‚ทใƒงใƒณใ‚„ใƒกใ‚ฟใƒ‡ใƒผใ‚ฟใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใฎใจๅŒใ˜ใ‚ˆใ†ใซใ€Pydanticใฎ`Field`ใ‚’ไฝฟใฃใฆPydanticใƒขใƒ‡ใƒซใฎๅ†…้ƒจใงใƒใƒชใƒ‡ใƒผใ‚ทใƒงใƒณใ‚„ใƒกใ‚ฟใƒ‡ใƒผใ‚ฟใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    
    ## `Field`ใฎใ‚คใƒณใƒใƒผใƒˆ
    
    ใพใšใ€ไปฅไธ‹ใฎใ‚ˆใ†ใซใ‚คใƒณใƒใƒผใƒˆใ—ใพใ™:
    
    ```Python hl_lines="4"
    {!../../docs_src/body_fields/tutorial001.py!}
    ```
    
    /// warning | "ๆณจๆ„"
    
    `Field`ใฏไป–ใฎๅ…จใฆใฎใ‚‚ใฎ๏ผˆ`Query`ใ€`Path`ใ€`Body`ใชใฉ๏ผ‰ใจใฏ้•ใ„ใ€`fastapi`ใ‹ใ‚‰ใงใฏใชใใ€`pydantic`ใ‹ใ‚‰็›ดๆŽฅใ‚คใƒณใƒใƒผใƒˆใ•ใ‚Œใฆใ„ใ‚‹ใ“ใจใซๆณจๆ„ใ—ใฆใใ ใ•ใ„ใ€‚
    
    ///
    
    ## ใƒขใƒ‡ใƒซใฎๅฑžๆ€งใฎๅฎฃ่จ€
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body_multiple_params/test_tutorial001.py

                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "msg": "value is not a valid integer",
                        "type": "type_error.integer",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_multiple_params/test_tutorial001_an_py310.py

                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "msg": "value is not a valid integer",
                        "type": "type_error.integer",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/path-operation-advanced-configuration.md

    //// tab | Pydantic v2
    
    ```Python hl_lines="17-22  24"
    {!> ../../docs_src/path_operation_advanced_configuration/tutorial007.py!}
    ```
    
    ////
    
    //// tab | Pydantic v1
    
    ```Python hl_lines="17-22  24"
    {!> ../../docs_src/path_operation_advanced_configuration/tutorial007_pv1.py!}
    ```
    
    ////
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/encoder.md

    The same way, this database wouldn't receive a Pydantic model (an object with attributes), only a `dict`.
    
    You can use `jsonable_encoder` for that.
    
    It receives an object, like a Pydantic model, and returns a JSON compatible version:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 23:31:16 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. docs/em/docs/deployment/versions.md

    ๐Ÿ‘† ๐Ÿšซ๐Ÿ”œ ๐Ÿšซ ๐Ÿ“Œ โฌ `starlette`.
    
    ๐ŸŽ โฌ **FastAPI** ๐Ÿ”œ โš™๏ธ ๐ŸŽฏ ๐Ÿ†• โฌ ๐Ÿ’ƒ.
    
    , ๐Ÿ‘† ๐Ÿ’ช โžก๏ธ **FastAPI** โš™๏ธ โ˜‘ ๐Ÿ’ƒ โฌ.
    
    ## ๐Ÿ”ƒ Pydantic
    
    Pydantic ๐Ÿ”Œ ๐Ÿ’ฏ **FastAPI** โฎ๏ธ ๐Ÿšฎ ๐Ÿ‘ ๐Ÿ’ฏ, ๐Ÿ†• โฌ Pydantic (๐Ÿ”› `1.0.0`) ๐Ÿ•ง ๐Ÿ”— โฎ๏ธ FastAPI.
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“Œ Pydantic ๐Ÿ™† โฌ ๐Ÿ”› `1.0.0` ๐Ÿ‘ˆ ๐Ÿ‘ท ๐Ÿ‘† &amp; ๐Ÿ”› `2.0.0`.
    
    ๐Ÿ–ผ:
    
    ```txt
    pydantic>=1.2.0,<2.0.0
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_body_multiple_params/test_tutorial001_py310.py

                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "msg": "value is not a valid integer",
                        "type": "type_error.integer",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top