FastAPI.Path : TypeError: Path() missing 1 required positional argument: 'default'
FastAPI.Path : TypeError: Path() missing 1 required positional argument: 'default' Question: From tutorials I’ve seen the below used. However, when I try to replicate (running Docker container locally) I observe the below error. @app.get("/get-student/{student_id}") # path parameters and query parameters have no overlap def get_student(student_id: int = Path( description="student ID", gt=0 #minimum ID = 1, …