- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for get_schema_from_model_field (0.15 sec)
-
fastapi/openapi/utils.py
from typing import Any, Optional, Union, cast from fastapi import routing from fastapi._compat import ( ModelField, Undefined, get_compat_model_name_map, get_definitions, get_schema_from_model_field, lenient_issubclass, ) from fastapi.datastructures import DefaultPlaceholder from fastapi.dependencies.models import Dependant from fastapi.dependencies.utils import ( _get_flat_fields_from_params,
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 23.2K bytes - Viewed (0) -
fastapi/_compat/v2.py
computed_fields = field._type_adapter.core_schema.get("schema", {}).get( "computed_fields", [] ) return len(computed_fields) > 0 def get_schema_from_model_field( *, field: ModelField, model_name_map: ModelNameMap, field_mapping: dict[ tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue ],
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 19.1K bytes - Viewed (0)