mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 23:55:02 +01:00
add missing amt validations
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user