|
@ -1,12 +1,5 @@ |
|
|
from typing import Any, Dict, List, Optional, Sequence, Tuple, Type |
|
|
from typing import Any, Dict, List, Optional, Sequence, Tuple, Type |
|
|
|
|
|
|
|
|
from pydantic.fields import Field |
|
|
|
|
|
from pydantic.schema import Schema, field_schema, get_model_name_map |
|
|
|
|
|
from pydantic.utils import lenient_issubclass |
|
|
|
|
|
from starlette.responses import JSONResponse |
|
|
|
|
|
from starlette.routing import BaseRoute |
|
|
|
|
|
from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY |
|
|
|
|
|
|
|
|
|
|
|
from fastapi import routing |
|
|
from fastapi import routing |
|
|
from fastapi.dependencies.models import Dependant |
|
|
from fastapi.dependencies.models import Dependant |
|
|
from fastapi.dependencies.utils import get_flat_dependant |
|
|
from fastapi.dependencies.utils import get_flat_dependant |
|
@ -15,6 +8,12 @@ from fastapi.openapi.constants import METHODS_WITH_BODY, REF_PREFIX |
|
|
from fastapi.openapi.models import OpenAPI |
|
|
from fastapi.openapi.models import OpenAPI |
|
|
from fastapi.params import Body, Param |
|
|
from fastapi.params import Body, Param |
|
|
from fastapi.utils import get_flat_models_from_routes, get_model_definitions |
|
|
from fastapi.utils import get_flat_models_from_routes, get_model_definitions |
|
|
|
|
|
from pydantic.fields import Field |
|
|
|
|
|
from pydantic.schema import Schema, field_schema, get_model_name_map |
|
|
|
|
|
from pydantic.utils import lenient_issubclass |
|
|
|
|
|
from starlette.responses import JSONResponse |
|
|
|
|
|
from starlette.routing import BaseRoute |
|
|
|
|
|
from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY |
|
|
|
|
|
|
|
|
validation_error_definition = { |
|
|
validation_error_definition = { |
|
|
"title": "ValidationError", |
|
|
"title": "ValidationError", |
|
|