From 07cfa66e5c222c45fab02da5a16c7a0982445f88 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 12 Apr 2026 18:03:15 -0400 Subject: [PATCH] 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) --- responder/ext/openapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responder/ext/openapi/__init__.py b/responder/ext/openapi/__init__.py index bd2fb34..7121af7 100644 --- a/responder/ext/openapi/__init__.py +++ b/responder/ext/openapi/__init__.py @@ -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):