Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for redefined (0.08 sec)

  1. fastapi/param_functions.py

    from typing import Annotated, Any, Callable, Optional, Union
    
    from annotated_doc import Doc
    from fastapi import params
    from fastapi._compat import Undefined
    from fastapi.openapi.models import Example
    from pydantic import AliasChoices, AliasPath
    from typing_extensions import Literal, deprecated
    
    _Unset: Any = Undefined
    
    
    def Path(  # noqa: N802
        default: Annotated[
            Any,
            Doc(
                """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/path-params.md

    Similarly, you cannot redefine a path operation:
    
    {* ../../docs_src/path_params/tutorial003b_py39.py hl[6,11] *}
    
    The first one will always be used since the path matches first.
    
    ## Predefined values { #predefined-values }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. fastapi/_compat/v2.py

    
    # TODO: remove when dropping support for Pydantic < v2.12.3
    def asdict(field_info: FieldInfo) -> dict[str, Any]:
        attributes = {}
        for attr in _Attrs:
            value = getattr(field_info, attr, Undefined)
            if value is not Undefined:
                attributes[attr] = value
        return {
            "annotation": field_info.annotation,
            "metadata": field_info.metadata,
            "attributes": attributes,
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/additional-responses.md

    It will all be combined and included in your OpenAPI, and shown in the API docs:
    
    <img src="/img/tutorial/additional-responses/image01.png">
    
    ## Combine predefined responses and custom ones { #combine-predefined-responses-and-custom-ones }
    
    You might want to have some predefined responses that apply to many *path operations*, but you want to combine them with custom responses needed by each *path operation*.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. .bazelrc

    
    # On Windows, `__cplusplus` is wrongly defined without this switch
    # See https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
    common:windows --copt=/Zc:__cplusplus
    common:windows --host_copt=/Zc:__cplusplus
    
    # Tensorflow uses M_* math constants that only get defined by MSVC headers if
    # _USE_MATH_DEFINES is defined.
    common:windows --copt=/D_USE_MATH_DEFINES
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Fri Dec 26 23:20:26 UTC 2025
    - 56.8K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/path-params.md

    De manera similar, no puedes redefinir una path operation:
    
    {* ../../docs_src/path_params/tutorial003b_py39.py hl[6,11] *}
    
    La primera siempre será utilizada ya que el path coincide primero.
    
    ## Valores predefinidos { #predefined-values }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/path-params.md

    Da mesma forma, você não pode redefinir uma operação de rota:
    
    {* ../../docs_src/path_params/tutorial003b_py39.py hl[6,11] *}
    
    A primeira sempre será usada, já que o path corresponde primeiro.
    
    ## Valores predefinidos { #predefined-values }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. fastapi/params.py

    from ._compat import (
        Undefined,
    )
    
    _Unset: Any = Undefined
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
        cookie = "cookie"
    
    
    class Param(FieldInfo):  # type: ignore[misc]
        in_: ParamTypes
    
        def __init__(
            self,
            default: Any = Undefined,
            *,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  9. tests/test_compat.py

    from typing import Union
    
    from fastapi import FastAPI, UploadFile
    from fastapi._compat import (
        Undefined,
        is_uploadfile_sequence_annotation,
    )
    from fastapi._compat.shared import is_bytes_sequence_annotation
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    from pydantic.fields import FieldInfo
    
    from .utils import needs_py310
    
    
    def test_model_field_default_required():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. fastapi/_compat/__init__.py

    from .v2 import BaseConfig as BaseConfig
    from .v2 import ModelField as ModelField
    from .v2 import PydanticSchemaGenerationError as PydanticSchemaGenerationError
    from .v2 import RequiredParam as RequiredParam
    from .v2 import Undefined as Undefined
    from .v2 import UndefinedType as UndefinedType
    from .v2 import Url as Url
    from .v2 import Validator as Validator
    from .v2 import _regenerate_error_with_loc as _regenerate_error_with_loc
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top