mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-14 02:35:51 -04:00
🐛 Fix issue with Swagger theme change example in the official tutorial (#13289)
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user