Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for is_body_allowed_for_status_code (0.09 sec)

  1. fastapi/utils.py

        from .routing import APIRoute
    
    # Cache for `create_cloned_field`
    _CLONED_TYPES_CACHE: MutableMapping[type[BaseModel], type[BaseModel]] = (
        WeakKeyDictionary()
    )
    
    
    def is_body_allowed_for_status_code(status_code: Union[int, str, None]) -> bool:
        if status_code is None:
            return True
        # Ref: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#patterned-fields-1
    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/openapi/utils.py

    from fastapi.params import Body, ParamTypes
    from fastapi.responses import Response
    from fastapi.types import ModelNameMap
    from fastapi.utils import (
        deep_dict_update,
        generate_operation_id_for_path,
        is_body_allowed_for_status_code,
    )
    from pydantic import BaseModel
    from starlette.responses import JSONResponse
    from starlette.routing import BaseRoute
    from typing_extensions import Literal
    
    validation_error_definition = {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. fastapi/routing.py

    )
    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
    from starlette._utils import is_async_callable
    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
    - 174.6K bytes
    - Viewed (0)
Back to top