refactor: add field to APIError struct

This commit is contained in:
2025-11-02 22:39:04 -03:00
parent 92f13fba22
commit 01a7f33054
5 changed files with 25 additions and 3 deletions

View File

@@ -23,6 +23,8 @@ type APIError struct {
Message string `json:"message"`
// Additional error details
Details string `json:"details,omitempty"`
// Field name if applicable
Field string `json:"field,omitempty" example:"name"`
}
const content_type = "Content-Type"