fix: return always data property in response

This commit is contained in:
2025-12-24 17:07:10 -03:00
parent a82adb90c2
commit 01dc6bb462

View File

@@ -9,7 +9,7 @@ type APIResponse struct {
// Indicates if the request was successful
Success bool `json:"success"`
// The response data
Data any `json:"data,omitempty"`
Data any `json:"data"`
// List of errors if any occurred
Errors []APIError `json:"errors,omitempty"`
// Optional message