Fix OpenAPI docs UI using hardcoded schema URL

The docs template always fetched from /schema.yml regardless of the
user's openapi_route setting. Now uses self.openapi_route so custom
schema paths (e.g. /openapi.json) work correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-12 18:03:15 -04:00
parent a5d38cf9c3
commit 07cfa66e5c
+1 -1
View File
@@ -216,7 +216,7 @@ class OpenAPISchema:
f"{self.docs_theme}.html",
title=self.title,
version=self.version,
schema_url="/schema.yml",
schema_url=self.openapi_route,
)
def static_url(self, asset):