Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for model_name_map (0.04 sec)

  1. fastapi/openapi/utils.py

        operation_ids: set[str] = set()
        all_fields = get_fields_from_routes(list(routes or []) + list(webhooks or []))
        model_name_map = get_compat_model_name_map(all_fields)
        field_mapping, definitions = get_definitions(
            fields=all_fields,
            model_name_map=model_name_map,
            separate_input_output_schemas=separate_input_output_schemas,
        )
        for route in routes or []:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. fastapi/_compat/v2.py

                item_description = cast(str, item_def["description"]).split("\f")[0]
                item_def["description"] = item_description
        new_mapping, new_definitions = _remap_definitions_and_field_mappings(
            model_name_map=model_name_map,
            definitions=definitions,  # type: ignore[arg-type]
            field_mapping=field_mapping,
        )
        return new_mapping, new_definitions
    
    
    def _replace_refs(
        *,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  3. fastapi/types.py

    from typing import Any, Callable, Optional, TypeVar, Union
    
    from pydantic import BaseModel
    
    DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
    UnionType = getattr(types, "UnionType", Union)
    ModelNameMap = dict[Union[type[BaseModel], type[Enum]], str]
    IncEx = Union[set[int], set[str], dict[int, Any], dict[str, Any]]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 455 bytes
    - Viewed (0)
Back to top