🐛 Fix issue with Swagger theme change example in the official tutorial (#13289)

This commit is contained in:
Hyogeun Oh (오효근) authored and GitHub committed 2025-02-18 17:52:15 +01:00
1 parent 235300c1d2
commit e157cf4b96
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
from fastapi import FastAPI
app = FastAPI(swagger_ui_parameters={"syntaxHighlight.theme": "obsidian"})
app = FastAPI(swagger_ui_parameters={"syntaxHighlight": {"theme": "obsidian"}})
@app.get("/users/{username}")