Skip to content

Commit

Permalink
remove requiered tag from block height
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Oct 27, 2023
1 parent 676192e commit 0757ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/api/handler/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ func NewBlockHandler(
}

type getBlockByHeightRequest struct {
Height types.Level `param:"height" validate:"required,min=0"`
Height types.Level `param:"height" validate:"min=0"`
}

type getBlockRequest struct {
Height types.Level `param:"height" validate:"required,min=0"`
Height types.Level `param:"height" validate:"min=0"`

Stats bool `query:"stats" validate:"omitempty"`
}
Expand Down

0 comments on commit 0757ab3

Please sign in to comment.