Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 850 for pydantic (0.04 sec)

  1. tests/test_tutorial/test_header_params/test_tutorial002_an_py39.py

                                        "title": "Strange Header",
                                    }
                                )
                                | IsDict(
                                    # TODO: remove when deprecating Pydantic v1
                                    {"title": "Strange Header", "type": "string"}
                                ),
                                "name": "strange_header",
                                "in": "header",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an_py39.py

                                        "title": "Q",
                                    }
                                )
                                | IsDict(
                                    # TODO: remove when deprecating Pydantic v1
                                    {
                                        "title": "Q",
                                        "type": "array",
                                        "items": {"type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tests/test_read_with_orm_mode.py

    from typing import Any
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    
    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    @needs_pydanticv2
    def test_read_with_orm_mode() -> None:
        class PersonBase(BaseModel):
            name: str
            lastname: str
    
        class Person(PersonBase):
            @property
            def full_name(self) -> str:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/openapi-callbacks.md

    ๐Ÿ‘‰ ๐Ÿ• ๐Ÿ“ถ ๐Ÿ˜, ๐ŸŒ… ๐Ÿ“Ÿ ๐ŸŽฒ โช ๐Ÿ˜ฐ ๐Ÿ‘†:
    
    ```Python hl_lines="9-13  36-53"
    {!../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    /// tip
    
    `callback_url` ๐Ÿ”ข ๐Ÿ”ข โš™๏ธ Pydantic <a href="https://docs.pydantic.dev/latest/concepts/types/#urls" class="external-link" target="_blank">๐Ÿ“›</a> ๐Ÿ†Ž.
    
    ///
    
    ๐Ÿ•ด ๐Ÿ†• ๐Ÿ‘œ `callbacks=messages_callback_router.routes` โŒ *โžก ๐Ÿ› ๏ธ ๐Ÿ‘จโ€๐ŸŽจ*. ๐Ÿ‘ฅ ๐Ÿ”œ ๐Ÿ‘€ โšซ๏ธโ” ๐Ÿ‘ˆ โญ.
    
    ## ๐Ÿ”ฌ โฒ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. CITATION.cff

    repository-code: 'https://github.com/fastapi/fastapi'
    url: 'https://fastapi.tiangolo.com'
    abstract: >-
      FastAPI framework, high performance, easy to learn, fast to code,
      ready for production
    keywords:
      - fastapi
      - pydantic
      - starlette
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 614 bytes
    - Viewed (0)
  6. docs_src/security/tutorial002_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    from fastapi.security import OAuth2PasswordBearer
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: str | None = None
        full_name: str | None = None
        disabled: bool | None = None
    
    
    def fake_decode_token(token):
        return User(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 761 bytes
    - Viewed (0)
  7. docs/em/docs/history-design-future.md

    ๐Ÿ‘ˆ ๐ŸŒŒ ๐Ÿ‘ค ๐Ÿ’ช ๐Ÿ”Ž ๐Ÿ† ๐ŸŒŒ ๐Ÿ“‰ ๐Ÿ“Ÿ โŽ ๐ŸŒ… ๐Ÿ’ช, โœ”๏ธ ๐Ÿ› ๏ธ ๐ŸŒ, ๐Ÿ†Ž &amp; โŒ โœ…, โ™’๏ธ.
    
    ๐ŸŒ ๐ŸŒŒ ๐Ÿ‘ˆ ๐Ÿšš ๐Ÿ† ๐Ÿ› ๏ธ ๐Ÿ’ก ๐ŸŒ ๐Ÿ‘ฉโ€๐Ÿ’ป.
    
    ## ๐Ÿ“„
    
    โฎ๏ธ ๐Ÿ”ฌ ๐Ÿ“š ๐ŸŽ›, ๐Ÿ‘ค ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ‘ค ๐Ÿ”œ โš™๏ธ <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a> ๐Ÿšฎ ๐Ÿ“ˆ.
    
    โคด๏ธ ๐Ÿ‘ค ๐Ÿ“‰ โšซ๏ธ, โš’ โšซ๏ธ ๐Ÿ• ๐Ÿ› ๏ธ โฎ๏ธ ๐ŸŽป ๐Ÿ”—, ๐Ÿ•โ€๐Ÿฆบ ๐ŸŽ ๐ŸŒŒ ๐Ÿ”ฌ โš› ๐Ÿ“„, &amp; ๐Ÿ“‰ ๐Ÿ‘จโ€๐ŸŽจ ๐Ÿ•โ€๐Ÿฆบ (๐Ÿ†Ž โœ…, โœ) โš“๏ธ ๐Ÿ”› ๐Ÿ’ฏ ๐Ÿ“š ๐Ÿ‘จโ€๐ŸŽจ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py

                        "msg": "Field required",
                        "input": None,
                    },
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["header", "x-token"],
                        "msg": "field required",
                        "type": "value_error.missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. docs_src/security/tutorial002.py

    from typing import Union
    
    from fastapi import Depends, FastAPI
    from fastapi.security import OAuth2PasswordBearer
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    def fake_decode_token(token):
        return User(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 755 bytes
    - Viewed (0)
  10. docs_src/path_operation_configuration/tutorial004_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
    
    
    @app.post("/items/", response_model=Item, summary="Create an item")
    async def create_item(item: Item):
        """
        Create an item with all the information:
    
        - **name**: each item must have a name
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 638 bytes
    - Viewed (0)
Back to top