summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-16 07:32:55 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-16 09:24:04 +0530
commitaffa80ee065a41b2afe3a7a12a499a86a88e2950 (patch)
treedf403907e3067134438fa2960ff6d20b4645ad6d
parent3dd390c0cb56ffb5a7c1f94afaed0b80ad12cbe1 (diff)
api/exampleReq.go: omit emtpy Error
-rw-r--r--api/exampleReq.go2
1 files changed, 1 insertions, 1 deletions
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 {