Skip to content

Commit a71474c

Browse files
committed
Fix swagger example
1 parent acd7b5f commit a71474c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/pkg/responses/response.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package responses
22

33
type response struct {
44
Status string `json:"status" example:"success"`
5-
Message string `json:"message" example:"item created successfully"`
5+
Message string `json:"message" example:"Request handled successfully"`
66
}
77

88
// InternalServerError is the response with status code is 500
@@ -27,7 +27,7 @@ type BadRequest struct {
2727
// UnprocessableEntity is the response with status code is 422
2828
type UnprocessableEntity struct {
2929
Status string `json:"status" example:"error"`
30-
Message string `json:"message" example:"validation errors while sending message"`
30+
Message string `json:"message" example:"validation errors while handling request"`
3131
Data map[string][]string `json:"data"`
3232
}
3333

0 commit comments

Comments
 (0)