|
|
@ -5,55 +5,55 @@ from fastapi.types import ModelNameMap |
|
|
|
|
|
|
|
|
if sys.version_info >= (3, 14): |
|
|
if sys.version_info >= (3, 14): |
|
|
|
|
|
|
|
|
class BaseConfig: |
|
|
class AnyUrl: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class FieldInfo: |
|
|
class BaseConfig: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class BaseModel: |
|
|
class BaseModel: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class UndefinedType: |
|
|
class Color: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class ErrorWrapper: |
|
|
class CoreSchema: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class ModelField: |
|
|
class ErrorWrapper: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class JsonSchemaValue: |
|
|
class FieldInfo: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class Color: |
|
|
class GetJsonSchemaHandler: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class NameEmail: |
|
|
class JsonSchemaValue: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class SecretBytes: |
|
|
class ModelField: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class SecretStr: |
|
|
class NameEmail: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class AnyUrl: |
|
|
class RequiredParam: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class Url: |
|
|
class SecretBytes: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class CoreSchema: |
|
|
class SecretStr: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class GetJsonSchemaHandler: |
|
|
class Undefined: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class Undefined: |
|
|
class UndefinedType: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class RequiredParam: |
|
|
class Url: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
def get_definitions( |
|
|
def get_definitions( |
|
|
@ -69,20 +69,33 @@ if sys.version_info >= (3, 14): |
|
|
]: |
|
|
]: |
|
|
return {}, {} |
|
|
return {}, {} |
|
|
|
|
|
|
|
|
|
|
|
def _normalize_errors(errors: Sequence[Any]) -> List[Dict[str, Any]]: |
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
def _regenerate_error_with_loc( |
|
|
def _regenerate_error_with_loc( |
|
|
*, errors: Sequence[Any], loc_prefix: Tuple[Union[str, int], ...] |
|
|
*, errors: Sequence[Any], loc_prefix: Tuple[Union[str, int], ...] |
|
|
) -> List[Dict[str, Any]]: |
|
|
) -> List[Dict[str, Any]]: |
|
|
return [] |
|
|
return [] |
|
|
|
|
|
|
|
|
def _normalize_errors(errors: Sequence[Any]) -> List[Dict[str, Any]]: |
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
else: |
|
|
else: |
|
|
|
|
|
from .v1 import AnyUrl as AnyUrl # type: ignore[assignment] |
|
|
from .v1 import BaseConfig as BaseConfig # type: ignore[assignment] |
|
|
from .v1 import BaseConfig as BaseConfig # type: ignore[assignment] |
|
|
from .v1 import CoreSchema as CoreSchema |
|
|
from .v1 import BaseModel as BaseModel # type: ignore[assignment] |
|
|
from .v1 import FieldInfo as FieldInfo |
|
|
from .v1 import Color as Color # type: ignore[assignment] |
|
|
from .v1 import GetJsonSchemaHandler as GetJsonSchemaHandler |
|
|
from .v1 import CoreSchema as CoreSchema # type: ignore[assignment] |
|
|
from .v1 import JsonSchemaValue as JsonSchemaValue |
|
|
from .v1 import ErrorWrapper as ErrorWrapper # type: ignore[assignment] |
|
|
from .v1 import ModelField |
|
|
from .v1 import FieldInfo as FieldInfo # type: ignore[assignment] |
|
|
from .v1 import UndefinedType as UndefinedType |
|
|
from .v1 import GetJsonSchemaHandler as GetJsonSchemaHandler # type: ignore[assignment] |
|
|
from .v1 import _normalize_errors as _normalize_errors |
|
|
from .v1 import JsonSchemaValue as JsonSchemaValue # type: ignore[assignment] |
|
|
|
|
|
from .v1 import ModelField # type: ignore[assignment] |
|
|
|
|
|
from .v1 import NameEmail as NameEmail # type: ignore[assignment] |
|
|
|
|
|
from .v1 import RequiredParam as RequiredParam # type: ignore[assignment] |
|
|
|
|
|
from .v1 import SecretBytes as SecretBytes # type: ignore[assignment] |
|
|
|
|
|
from .v1 import SecretStr as SecretStr # type: ignore[assignment] |
|
|
|
|
|
from .v1 import Undefined as Undefined # type: ignore[assignment] |
|
|
|
|
|
from .v1 import UndefinedType as UndefinedType # type: ignore[assignment] |
|
|
|
|
|
from .v1 import Url as Url # type: ignore[assignment] |
|
|
|
|
|
from .v1 import get_definitions # type: ignore[assignment] |
|
|
|
|
|
from .v1 import _normalize_errors as _normalize_errors # type: ignore[assignment] |
|
|
|
|
|
from .v1 import _regenerate_error_with_loc # type: ignore[assignment] |
|
|
|