From affa80ee065a41b2afe3a7a12a499a86a88e2950 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 16 Mar 2024 07:32:55 +0530 Subject: api/exampleReq.go: omit emtpy Error --- api/exampleReq.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/exampleReq.go') diff --git a/api/exampleReq.go b/api/exampleReq.go index d4ec862..40bd55f 100644 --- a/api/exampleReq.go +++ b/api/exampleReq.go @@ -20,7 +20,7 @@ type RequestApiName struct { type ResponseApiName struct { Bearer *redqdb.Bearer - Error string + Error string `json:"error,omitempty"` } func newExamplApiName(db *redqdb.SafeDB) *examplApiName { -- cgit v1.2.3