v0.1.7 - Bug Fixes, Test Suite & Automated CI/CD
Highlights in this Release
Bug Fixes & Stability
StaticDefcrash fix: Guardedbuild_spec()to safely ignore static route definitions (routes.static(...)) without raisingAttributeError.- Tightened WebSocket detection: Replaced broad substring matching with strict path segment regex (
r"(^|/)(ws|websocket)(/|$)") to ensure standard routes like/api/newsare never falsely excluded. - Fixed
NotAppKeyWarning: Replaced string application keys with modern, typedaiohttp.web.AppKeyinstances for full compatibility withaiohttp>=3.9. - Trailing slash redirect: Fixed
/docs/redirect behavior to preserve proper status codes.
Automated Testing & CI/CD
- Full Test Suite (
tests/): Added unit and integration tests covering@docs()decorator metadata, Pydantic v2 & dict schema extraction, OpenAPI spec generator, Swagger UI rendering, and async HTTP handlers. - GitHub Actions CI Matrix: Automated testing across Python 3.11, 3.12, and 3.13 using
uv. - Automated PyPI Deployment: Integrated release workflow with test gating.
Documentation & Examples
- Added runnable standalone examples in
examples/demonstrating both zero-dependency dict schemas and Pydantic v2 integrations. - Added comprehensive
CONTRIBUTING.mdguide withuvenvironment commands.
Full Changelog: https://github.com/kappall/aiohttp_autodocs/commits/main