From 01dc6bb462b32f65a3b40cbd07567a0f88297538 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Wed, 24 Dec 2025 17:07:10 -0300 Subject: [PATCH] fix: return always data property in response --- internal/handler/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handler/response.go b/internal/handler/response.go index d256ec6..866ae04 100644 --- a/internal/handler/response.go +++ b/internal/handler/response.go @@ -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