add missing amt validations

This commit is contained in:
kiwiidb
2022-06-10 10:20:54 +02:00
parent 5a35d7ce9d
commit 22a788e153
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ func NewKeySendController(svc *service.LndhubService) *KeySendController {
}
type KeySendRequestBody struct {
Amount int64 `json:"amount" validate:"required"`
Amount int64 `json:"amount" validate:"required,gt=0"`
Destination string `json:"destination" validate:"required"`
Memo string `json:"memo" validate:"omitempty"`
CustomRecords map[string]string `json:"customRecords" validate:"omitempty"`