Skip to content

v0.0.1

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 18:05

🚀 Added

  • exception_handlers: handle_base_error, handle_collection_error, handle_http_exception and handle_request_validation_error answer dddesign errors, HTTPException and request validation errors in one shape, Errors. A message that comes from outside (an exception detail, a validation message) is taken literally, and a detail that is not a string is dumped to JSON.
  • middlewares, all pure ASGI: LogPropertiesManagerMiddleware enters the scope of the application's log properties registry for each request; SentryTagsMiddleware tags the Sentry scope with them; RequestResponseLoggingMiddleware logs every request and response as a dict with the route mask and the bodies, parsed up to max_body_log_size and measured past it.
  • utils: UrlMaskResolver, which resolves a path to the mask of its route without running the router, and format_body.

Python 3.11 to 3.15, fastapi >= 0.138, < 0.166, sentry-sdk >= 2.12, < 4.

Full Changelog: https://github.com/davyddd/ddfastapi/commits/v0.0.1