func (o *GetOracleVotersValidatorAggregatePrevoteOKBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateResult(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this get oracle voters validator aggregate prevote o k body
package oracle
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/terra-project/mantle-sdk/lcd/models"
)
type GetOracleVotersValidatorAggregatePrevoteReader struct {
	formats strfmt.Registry
}
func (o *GetOracleVotersValidatorAggregatePrevoteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetOracleVotersValidatorAggregatePrevoteOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetOracleVotersValidatorAggregatePrevoteBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetOracleVotersValidatorAggregatePrevoteInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}
func NewGetOracleVotersValidatorAggregatePrevoteOK() *GetOracleVotersValidatorAggregatePrevoteOK {
	return &GetOracleVotersValidatorAggregatePrevoteOK{}
}
type GetOracleVotersValidatorAggregatePrevoteOK struct {
	Payload *GetOracleVotersValidatorAggregatePrevoteOKBody
}
func (o *GetOracleVotersValidatorAggregatePrevoteOK) Error() string {
	return fmt.Sprintf("[GET /oracle/voters/{validator}/aggregate_prevote][%d] getOracleVotersValidatorAggregatePrevoteOK  %+v", 200, o.Payload)
}
func (o *GetOracleVotersValidatorAggregatePrevoteOK) GetPayload() *GetOracleVotersValidatorAggregatePrevoteOKBody {
	return o.Payload
}
func (o *GetOracleVotersValidatorAggregatePrevoteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetOracleVotersValidatorAggregatePrevoteOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetOracleVotersValidatorAggregatePrevoteBadRequest() *GetOracleVotersValidatorAggregatePrevoteBadRequest {
	return &GetOracleVotersValidatorAggregatePrevoteBadRequest{}
}
type GetOracleVotersValidatorAggregatePrevoteBadRequest struct {
}
func (o *GetOracleVotersValidatorAggregatePrevoteBadRequest) Error() string {
	return fmt.Sprintf("[GET /oracle/voters/{validator}/aggregate_prevote][%d] getOracleVotersValidatorAggregatePrevoteBadRequest ", 400)
}
func (o *GetOracleVotersValidatorAggregatePrevoteBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetOracleVotersValidatorAggregatePrevoteInternalServerError() *GetOracleVotersValidatorAggregatePrevoteInternalServerError {
	return &GetOracleVotersValidatorAggregatePrevoteInternalServerError{}
}
type GetOracleVotersValidatorAggregatePrevoteInternalServerError struct {
}
func (o *GetOracleVotersValidatorAggregatePrevoteInternalServerError) Error() string {
	return fmt.Sprintf("[GET /oracle/voters/{validator}/aggregate_prevote][%d] getOracleVotersValidatorAggregatePrevoteInternalServerError ", 500)
}
func (o *GetOracleVotersValidatorAggregatePrevoteInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type GetOracleVotersValidatorAggregatePrevoteOKBody struct {
	Height string `json:"height,omitempty"`
	Result *models.AggregateExchangeRatePrevote `json:"result,omitempty"`
}