-
First Check
Commit to Help
Example Codefrom fastapi import FastAPI
app = FastAPI()
# you can add a test endpoint here or not - same bug either wayDescriptionAccording to the documentation of the
(assuming that Clearly this is not happening. Operating SystemLinux Operating System DetailsNo response FastAPI Version0.110.3 (but according to github code seems to be in latest also) Pydantic Version2.5.3 Python VersionPython 3.10.12 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
@mzealey I think the problem is in this line. fastapi/fastapi/openapi/utils.py Lines 484 to 485 in 7c6f2f8 If we change it with something like this output["servers"] = [] if servers is None else serversthe result is this which I think is correct. > curl localhost:8000/openapi.json
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"servers":[],"paths":{}}Sorry if I miss your point. |
Beta Was this translation helpful? Give feedback.
-
|
Can you point me to the documentation section? |
Beta Was this translation helpful? Give feedback.
Created an issue: #12246.
Thanks.