Dragonfly2 icon indicating copy to clipboard operation
Dragonfly2 copied to clipboard

Improve handler error handling and Swagger docs

Open retr0-kernel opened this issue 7 months ago • 1 comments

Enhance error handling and validation in API handlers (can start with application.go and audit.go and after a successful review and continue with other handlers) Update Swagger comments to document all error responses (422, 500, etc.)

retr0-kernel avatar May 24 '25 07:05 retr0-kernel

Thank you very much for your interest in dragonfly, there is the following to clarify:

  1. The parameter verification has been completed in the annotation, refer to https://github.com/dragonflyoss/dragonfly/blob/main/manager/types/audit.go#L40.
  2. A unified error handling approach is desirable.

LunaWhispers avatar Jun 26 '25 07:06 LunaWhispers