Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 80 for friends (0.15 sec)

  1. docs/en/docs/tutorial/response-model.md

    ### Type Annotations and Tooling
    
    First let's see how editors, mypy and other tools would see this.
    
    `BaseUser` has the base fields. Then `UserIn` inherits from `BaseUser` and adds the `password` field, so, it will include all the fields from both models.
    
    We annotate the function return type as `BaseUser`, but we are actually returning a `UserIn` instance.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  2. tests/test_compat.py

        _get_model_config,
        is_bytes_sequence_annotation,
        is_uploadfile_sequence_annotation,
    )
    from fastapi.testclient import TestClient
    from pydantic import BaseConfig, BaseModel, ConfigDict
    from pydantic.fields import FieldInfo
    
    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    @needs_pydanticv2
    def test_model_field_default_required():
        # For coverage
        field_info = FieldInfo(annotation=str)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/query-params-str-validations.md

    !!! tip
        Pydantic, โ” โšซ๏ธโ” ๐Ÿ‹๏ธ ๐ŸŒ ๐Ÿ’ฝ ๐Ÿ”ฌ &amp; ๐Ÿ› ๏ธ FastAPI, โœ”๏ธ ๐ŸŽ ๐ŸŽญ ๐Ÿ•โ” ๐Ÿ‘† โš™๏ธ `Optional` โš–๏ธ `Union[Something, None]` ๐Ÿต ๐Ÿ”ข ๐Ÿ’ฒ, ๐Ÿ‘† ๐Ÿ’ช โœ ๐ŸŒ… ๐Ÿ”ƒ โšซ๏ธ Pydantic ๐Ÿฉบ ๐Ÿ”ƒ <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">โœ” ๐Ÿ“ฆ ๐Ÿ‘</a>.
    
    ### โš™๏ธ Pydantic `Required` โ†ฉ๏ธ โ• (`...`)
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’ญ ๐Ÿ˜ฌ โš™๏ธ `...`, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ—„ &amp; โš™๏ธ `Required` โšช๏ธโžก๏ธ Pydantic:
    
    ```Python hl_lines="2  8"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  4. fastapi/params.py

    import warnings
    from enum import Enum
    from typing import Any, Callable, Dict, List, Optional, Sequence, Union
    
    from fastapi.openapi.models import Example
    from pydantic.fields import FieldInfo
    from typing_extensions import Annotated, deprecated
    
    from ._compat import PYDANTIC_V2, PYDANTIC_VERSION, Undefined
    
    _Unset: Any = Undefined
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  5. docs/en/docs/alternatives.md

    It can't handle nested models very well. So, if the JSON body in the request is a JSON object that has inner fields that in turn are nested JSON objects, it cannot be properly documented and validated.
    
    !!! check "Inspired **FastAPI** to"
        Use Python types to have great editor support.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. docs/it/docs/index.md

    **Spoiler alert**: il tutorial - Guida Utente include:
    
    * Dichiarazione di **parameters** da altri posti diversi come: **headers**, **cookies**, **form fields** e **files**.
    * Come stabilire **vincoli di validazione** come `maximum_length` o `regex`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/body-fields.md

    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an.py!}
        ```
    
    === "Python 3.10+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
    
        !!! tip "ํŒ"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/body-fields.md

    ใพใšใ€ไปฅไธ‹ใฎใ‚ˆใ†ใซใ‚คใƒณใƒใƒผใƒˆใ—ใพใ™:
    
    ```Python hl_lines="4"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    !!! warning "ๆณจๆ„"
        `Field`ใฏไป–ใฎๅ…จใฆใฎใ‚‚ใฎ๏ผˆ`Query`ใ€`Path`ใ€`Body`ใชใฉ๏ผ‰ใจใฏ้•ใ„ใ€`fastapi`ใ‹ใ‚‰ใงใฏใชใใ€`pydantic`ใ‹ใ‚‰็›ดๆŽฅใ‚คใƒณใƒใƒผใƒˆใ•ใ‚Œใฆใ„ใ‚‹ใ“ใจใซๆณจๆ„ใ—ใฆใใ ใ•ใ„ใ€‚
    
    ## ใƒขใƒ‡ใƒซใฎๅฑžๆ€งใฎๅฎฃ่จ€
    
    ไปฅไธ‹ใฎใ‚ˆใ†ใซ`Field`ใ‚’ใƒขใƒ‡ใƒซใฎๅฑžๆ€งใจใ—ใฆไฝฟ็”จใ™ใ‚‹ใ“ใจใŒใงใใพใ™:
    
    ```Python hl_lines="11 12 13 14"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    `Field`ใฏ`Query`ใ‚„`Path`ใ€`Body`ใจๅŒใ˜ใ‚ˆใ†ใซๅ‹•ไฝœใ—ใ€ๅ…จใๅŒๆง˜ใฎใƒ‘ใƒฉใƒกใƒผใ‚ฟใชใฉใ‚’ๆŒใกใพใ™ใ€‚
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:33:28 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

    ### Changes
    
    * There are **new parameter** fields supported by Pydantic `Field()` for:
    
        * `Path()`
        * `Query()`
        * `Header()`
        * `Cookie()`
        * `Body()`
        * `Form()`
        * `File()`
    
    * The new parameter fields are:
    
        * `default_factory`
        * `alias_priority`
        * `validation_alias`
    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)
  10. docs/en/docs/tutorial/request-forms-and-files.md

        ```
    
    The files and form fields will be uploaded as form data and you will receive the files and form fields.
    
    And you can declare some of the files as `bytes` and some as `UploadFile`.
    
    !!! warning
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top