Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for create_model_field (0.06 sec)

  1. fastapi/utils.py

        "response model from the type annotation with the path operation decorator "
        "parameter response_model=None. Read more: "
        "https://fastapi.tiangolo.com/tutorial/response-model/"
    )
    
    
    def create_model_field(
        name: str,
        type_: Any,
        class_validators: Optional[dict[str, Validator]] = None,
        default: Optional[Any] = Undefined,
        required: Union[bool, UndefinedType] = Undefined,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

    from fastapi.exceptions import DependencyScopeError
    from fastapi.logger import logger
    from fastapi.security.oauth2 import SecurityScopes
    from fastapi.types import DependencyCacheKey
    from fastapi.utils import create_model_field, get_path_param_names
    from pydantic import BaseModel
    from pydantic.fields import FieldInfo
    from starlette.background import BackgroundTasks as StarletteBackgroundTasks
    from starlette.concurrency import run_in_threadpool
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  3. fastapi/routing.py

        RequestValidationError,
        ResponseValidationError,
        WebSocketRequestValidationError,
    )
    from fastapi.types import DecoratedCallable, IncEx
    from fastapi.utils import (
        create_cloned_field,
        create_model_field,
        generate_unique_id,
        get_value_or_default,
        is_body_allowed_for_status_code,
    )
    from starlette import routing
    from starlette._exception_handler import wrap_app_handling_exceptions
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    * ♻️ Rename internal `create_response_field()` to `create_model_field()` as it's used for more than response models. PR [#12103](https://github.com/fastapi/fastapi/pull/12103) by [@tiangolo](https://github.com/tiangolo).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top