func (o *GetGovParametersVotingOKBody) 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 gov parameters voting o k body
package governance
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)
type GetGovParametersVotingReader struct {
	formats strfmt.Registry
}
func (o *GetGovParametersVotingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetGovParametersVotingOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetGovParametersVotingBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetGovParametersVotingNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetGovParametersVotingInternalServerError()
		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 NewGetGovParametersVotingOK() *GetGovParametersVotingOK {
	return &GetGovParametersVotingOK{}
}
type GetGovParametersVotingOK struct {
	Payload *GetGovParametersVotingOKBody
}
func (o *GetGovParametersVotingOK) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/voting][%d] getGovParametersVotingOK  %+v", 200, o.Payload)
}
func (o *GetGovParametersVotingOK) GetPayload() *GetGovParametersVotingOKBody {
	return o.Payload
}
func (o *GetGovParametersVotingOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetGovParametersVotingOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetGovParametersVotingBadRequest() *GetGovParametersVotingBadRequest {
	return &GetGovParametersVotingBadRequest{}
}
type GetGovParametersVotingBadRequest struct {
}
func (o *GetGovParametersVotingBadRequest) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/voting][%d] getGovParametersVotingBadRequest ", 400)
}
func (o *GetGovParametersVotingBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetGovParametersVotingNotFound() *GetGovParametersVotingNotFound {
	return &GetGovParametersVotingNotFound{}
}
type GetGovParametersVotingNotFound struct {
}
func (o *GetGovParametersVotingNotFound) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/voting][%d] getGovParametersVotingNotFound ", 404)
}
func (o *GetGovParametersVotingNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetGovParametersVotingInternalServerError() *GetGovParametersVotingInternalServerError {
	return &GetGovParametersVotingInternalServerError{}
}
type GetGovParametersVotingInternalServerError struct {
}
func (o *GetGovParametersVotingInternalServerError) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/voting][%d] getGovParametersVotingInternalServerError ", 500)
}
func (o *GetGovParametersVotingInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type GetGovParametersVotingOKBody struct {
	Height string `json:"height,omitempty"`
	Result *GetGovParametersVotingOKBodyResult `json:"result,omitempty"`
}