Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for create_model_field (0.13 seconds)

  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,
        default: Any | None = Undefined,
        field_info: FieldInfo | None = None,
        alias: str | None = None,
        mode: Literal["validation", "serialization"] = "validation",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 4.2K bytes
    - Click Count (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, Json
    from pydantic.fields import FieldInfo
    from starlette.background import BackgroundTasks as StarletteBackgroundTasks
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  3. fastapi/routing.py

        _PING_INTERVAL,
        KEEPALIVE_COMMENT,
        EventSourceResponse,
        ServerSentEvent,
        format_sse_event,
    )
    from fastapi.types import DecoratedCallable, IncEx
    from fastapi.utils import (
        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
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  4. docs/en/docs/release-notes.md

    ## 0.128.4 (2026-02-07)
    
    ### Refactors
    
    * ♻️ Refactor internals, simplify Pydantic v2/v1 utils, `create_model_field`, better types for `lenient_issubclass`. PR [#14860](https://github.com/fastapi/fastapi/pull/14860) by [@tiangolo](https://github.com/tiangolo).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
Back to Top