Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 122 for Fifield (0.29 sec)

  1. docs/en/docs/tutorial/body-multiple-params.md

        ```
    
    In this case, **FastAPI** will notice that there are more than one body parameters in the function (two parameters that are Pydantic models).
    
    So, it will then use the parameter names as keys (field names) in the body, and expect a body like:
    
    ```JSON
    {
        "item": {
            "name": "Foo",
            "description": "The pretender",
            "price": 42.0,
            "tax": 3.2
        },
        "user": {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/settings.md

    🗄 `BaseSettings` âšĒī¸âžĄī¸ Pydantic & ✍ 🎧-🎓, đŸ“ļ 🌅 💖 ⏎ī¸ Pydantic 🏷.
    
    🎏 🌌 ⏎ī¸ Pydantic 🏷, 👆 đŸ“Ŗ 🎓 đŸ”ĸ ⏎ī¸ 🆎 ✍, & 🎲 đŸ”ĸ 💲.
    
    👆 đŸ’Ē ⚙ī¸ 🌐 🎏 đŸ”Ŧ ⚒ & 🧰 👆 ⚙ī¸ Pydantic 🏷, 💖 🎏 📊 🆎 & 🌖 đŸ”Ŧ ⏎ī¸ `Field()`.
    
    ```Python hl_lines="2  5-8  11"
    {!../../../docs_src/settings/tutorial001.py!}
    ```
    
    !!! tip
        đŸšĨ 👆 💚 đŸ•ŗ ⏊ 📁 & 📋, đŸšĢ ⚙ī¸ 👉 đŸ–ŧ, ⚙ī¸ 🏁 1ī¸âƒŖ 🔛.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  3. docs/en/docs/release-notes.md

    * â™ģī¸ Simplify Pydantic configs in OpenAPI models in `fastapi/openapi/models.py`. PR [#10886](https://github.com/tiangolo/fastapi/pull/10886) by [@JoeTanto2](https://github.com/JoeTanto2).
    * ✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response. PR [#11461](https://github.com/tiangolo/fastapi/pull/11461) by [@tiangolo](https://github.com/tiangolo).
    
    ### Docs
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  4. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

                        "type": "missing",
                        "loc": ["body", "file"],
                        "msg": "Field required",
                        "input": None,
                    },
                    {
                        "type": "missing",
                        "loc": ["body", "fileb"],
                        "msg": "Field required",
                        "input": None,
                    },
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/body-fields.md

         & Pydantic `Field` 📨 👐 `FieldInfo` 👍.
    
        `Body` 📨 🎚 đŸŋ `FieldInfo` 🔗. & 📤 🎏 👆 🔜 👀 âĒ 👈 đŸŋ `Body` 🎓.
    
        💭 👈 🕐❔ 👆 🗄 `Query`, `Path`, & 🎏 âšĒī¸âžĄī¸ `fastapi`, 👈 🤙 đŸ”ĸ 👈 📨 🎁 🎓.
    
    !!! tip
        👀 ❔ 🔠 🏷 đŸ”ĸ ⏎ī¸ 🆎, đŸ”ĸ 💲 & `Field` ✔ī¸ 🎏 📊 *➡ 🛠ī¸ đŸ”ĸ* đŸ”ĸ, ⏎ī¸ `Field` ↩ī¸ `Path`, `Query` & `Body`.
    
    ## 🚮 ➕ ℹ
    
    👆 đŸ’Ē đŸ“Ŗ ➕ ℹ `Field`, `Query`, `Body`, ♒ī¸. & âšĢī¸ 🔜 🔌 🏗 đŸŽģ 🔗.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  6. docs_src/schema_extra_example/tutorial002_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str = Field(examples=["Foo"])
        description: str | None = Field(default=None, examples=["A very nice Item"])
        price: float = Field(examples=[35.4])
        tax: float | None = Field(default=None, examples=[3.2])
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 479 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py310.py

                        "type": "missing",
                        "loc": ["body", "item"],
                        "msg": "Field required",
                        "input": None,
                    },
                    {
                        "type": "missing",
                        "loc": ["body", "user"],
                        "msg": "Field required",
                        "input": None,
                    },
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. docs_src/body_fields/tutorial001_py310.py

    from fastapi import Body, FastAPI
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = Field(
            default=None, title="The description of the item", max_length=300
        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 523 bytes
    - Viewed (0)
  9. docs_src/body_fields/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import Body, FastAPI
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = Field(
            default=None, title="The description of the item", max_length=300
        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 563 bytes
    - Viewed (0)
  10. docs_src/body_fields/tutorial001_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Body, FastAPI
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = Field(
            default=None, title="The description of the item", max_length=300
        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 582 bytes
    - Viewed (0)
Back to top