Skip to content

Commit

Permalink
Add amount validation
Browse files Browse the repository at this point in the history
  • Loading branch information
roeierez committed Jan 18, 2024
1 parent b8d3b1e commit 9943f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (p *LnurlPayInfoPayload) ToNotification(query *MobilePushWebHookQuery) *not
type LnurlPayInvoicePayload struct {
Template string `json:"template" binding:"required,eq=lnurlpay_invoice"`
Data struct {
Amount int `json:"amount" binding:"required"`
Amount uint64 `json:"amount" binding:"required,min=1"`
ReplyURL string `json:"reply_url" binding:"required"`
} `json:"data"`
}
Expand Down

0 comments on commit 9943f8a

Please sign in to comment.