Tags: zmievsa/cadwyn
Tags
Add custom static asset URL support for Swagger UI and ReDoc (#361) Allow overriding CDN URLs for docs JS, CSS, and favicon assets via swagger_js_url, swagger_css_url, swagger_favicon_url, redoc_js_url, and redoc_favicon_url parameters on Cadwyn. Closes #361 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Fix compatibility with Starlette 1.0.0 and upgrade dependencies Starlette 1.0.0 removed the deprecated TemplateResponse(name, context) calling convention. Switch to kwargs-based call that works on both old and new Starlette. Also remove test for JSON body without Content-Type which is no longer supported by FastAPI 0.132.0+. Bump version to 6.1.1. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Fix AttributeError when using callable class dependencies with future… … annotations (#322) When using `from __future__ import annotations` with callable class instances as route dependencies, Cadwyn would crash with an AttributeError because it tried to access `call.__globals__` directly. For callable class instances, the `__globals__` attribute exists on the `__call__` method, not on the instance itself. The fix checks if the callable is a regular function using `is_regular_function()`, and if not, retrieves the globals from `call.__call__.__globals__` instead. Fixes #321 --------- Co-authored-by: Claude <[email protected]>
PreviousNext