Dragonfly2
Dragonfly2 copied to clipboard
Improve handler error handling and Swagger docs
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.)
Thank you very much for your interest in dragonfly, there is the following to clarify:
- The parameter verification has been completed in the annotation, refer to https://github.com/dragonflyoss/dragonfly/blob/main/manager/types/audit.go#L40.
- A unified error handling approach is desirable.