Skip to content

Commit

Permalink
request type changes - cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: nidhi-singh02 <trippin@berachain.com>
  • Loading branch information
nidhi-singh02 committed Sep 8, 2024
1 parent 318d0a7 commit 05edaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mod/node-api/handlers/beacon/historical.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ func convertToFork[T any](forkGeneric T) (*consensustypes.Fork, error) {
return nil, errors.Wrapf(errors.New(
"type assertion failed",
), "unexpected fork type: %T", forkGeneric)

}
return fork, nil
}
4 changes: 2 additions & 2 deletions mod/node-api/handlers/beacon/types/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type GetStateValidatorsRequest struct {
type PostStateValidatorsRequest struct {
types.StateIDRequest
IDs []string `json:"ids" validate:"dive,validator_id"`
Statuses []string `json:"statuses" validate:"omitempty,dive,validator_status"`
Statuses []string `json:"statuses" validate:"dive,validator_status"`
}

type GetStateValidatorRequest struct {
Expand All @@ -60,7 +60,7 @@ type GetValidatorBalancesRequest struct {

type PostValidatorBalancesRequest struct {
types.StateIDRequest
IDs []string `json:"-"`
IDs []string `json:"-" validate:"dive,validator_id"`
}

type GetStateCommitteesRequest struct {
Expand Down

0 comments on commit 05edaae

Please sign in to comment.