remove the optional pydantic typing from the files param

This commit is contained in:
sabaimran 2024-07-30 08:52:44 +05:30 committed by Debanjum Singh Solanky
parent 4a7efdc552
commit b1eb564706

View file

@ -81,7 +81,7 @@ class IndexerInput(BaseModel):
@requires(["authenticated"]) @requires(["authenticated"])
async def put_content( async def put_content(
request: Request, request: Request,
files: Optional[List[UploadFile]] = [], files: List[UploadFile] = [],
t: Optional[Union[state.SearchType, str]] = state.SearchType.All, t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
client: Optional[str] = None, client: Optional[str] = None,
user_agent: Optional[str] = Header(None), user_agent: Optional[str] = Header(None),
@ -103,7 +103,7 @@ async def put_content(
@requires(["authenticated"]) @requires(["authenticated"])
async def patch_content( async def patch_content(
request: Request, request: Request,
files: Optional[List[UploadFile]] = [], files: List[UploadFile] = [],
t: Optional[Union[state.SearchType, str]] = state.SearchType.All, t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
client: Optional[str] = None, client: Optional[str] = None,
user_agent: Optional[str] = Header(None), user_agent: Optional[str] = Header(None),