bowener.chen

Results 8 comments of bowener.chen

> Seems like an issue with the generated OpenAPI, or Swagger. I'm not sure which. Nonetheless, an issue. > > ```python > from __future__ import annotations > > from typing...

on MacBook Pro M2 Max PyCharm 2024.2.3 (Professional Edition)

![QQ_1727596896301](https://github.com/user-attachments/assets/b26c1f50-7820-4bc6-b622-36fd6bf698a6) ![QQ_1727596918838](https://github.com/user-attachments/assets/18f52873-3ac0-4486-950f-49ec60171729) ![QQ_1727596942036](https://github.com/user-attachments/assets/80c7e630-7e28-4f52-bd56-3d069ddf9b3f) ![QQ_1727596962417](https://github.com/user-attachments/assets/200a350c-ea5c-41d5-a708-e7a0c21ad414) yeah, it worked!

hi,Marcelo, I would like to confirm one more question about best practices: Is it a recommended practice to make a parameter required by setting Query(default=...)? I noticed that using this...

Okay, here it is. Let's try the following code: ``` from __future__ import annotations from typing import Annotated import fastapi import uvicorn from fastapi import FastAPI, Query app = FastAPI()...