diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-16 07:32:55 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-16 09:24:04 +0530 |
commit | affa80ee065a41b2afe3a7a12a499a86a88e2950 (patch) | |
tree | df403907e3067134438fa2960ff6d20b4645ad6d /api | |
parent | 3dd390c0cb56ffb5a7c1f94afaed0b80ad12cbe1 (diff) |
api/exampleReq.go: omit emtpy Error
Diffstat (limited to 'api')
-rw-r--r-- | api/exampleReq.go | 2 |
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 { |