adding omitempty to request object (#15031)

This commit is contained in:
james-prysm
2025-03-11 08:43:00 -05:00
committed by GitHub
parent 15462844f9
commit 7cef3b0491
2 changed files with 5 additions and 2 deletions

View File

@@ -78,8 +78,8 @@ type GetBlockHeaderResponse struct {
}
type GetValidatorsRequest struct {
Ids []string `json:"ids"`
Statuses []string `json:"statuses"`
Ids []string `json:"ids,omitempty"`
Statuses []string `json:"statuses,omitempty"`
}
type GetValidatorsResponse struct {

View File

@@ -0,0 +1,3 @@
### Changed
- changed request object for `POST /eth/v1/beacon/states/head/validators` to omit the field if empty for satisfying other clients.