from typing import Optional @test_router.get("/test/query") async def testenum(id:int=0,name:Optional[str]=None): return {"hello":id,"name":name}