From 0757ab3d10cfceea58c98931a69cd03d4a51b192 Mon Sep 17 00:00:00 2001 From: Lavysh Alexander Date: Fri, 27 Oct 2023 23:25:00 +0300 Subject: [PATCH] remove requiered tag from block height --- cmd/api/handler/block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/api/handler/block.go b/cmd/api/handler/block.go index 24adfb95..ee1ce808 100644 --- a/cmd/api/handler/block.go +++ b/cmd/api/handler/block.go @@ -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"` }