- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for is_scalar_field (0.71 sec)
-
tests/test_compat.py
from fastapi import FastAPI, UploadFile from fastapi._compat import ( ModelField, Undefined, _get_model_config, get_cached_model_fields, get_model_fields, is_bytes_sequence_annotation, is_scalar_field, is_uploadfile_sequence_annotation, ) from fastapi.testclient import TestClient from pydantic import BaseConfig, BaseModel, ConfigDict from pydantic.fields import FieldInfo
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Sep 11 07:45:30 UTC 2024 - 3.5K bytes - Viewed (0) -
fastapi/dependencies/utils.py
field_info=field_info, ) if is_path_param: assert is_scalar_field( field=field ), "Path params must be of one of the supported types" elif isinstance(field_info, params.Query): assert ( is_scalar_field(field) or is_scalar_sequence_field(field) or (
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 21:46:26 UTC 2024 - 34.7K bytes - Viewed (0) -
fastapi/_compat.py
] field_mapping, definitions = schema_generator.generate_definitions( inputs=inputs ) return field_mapping, definitions # type: ignore[return-value] def is_scalar_field(field: ModelField) -> bool: from fastapi import params return field_annotation_is_scalar( field.field_info.annotation ) and not isinstance(field.field_info, params.Body)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:36:32 UTC 2024 - 23.4K bytes - Viewed (0)