func (o *GetGovParametersDepositOKBodyResult) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMinDeposit(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this get gov parameters deposit o k body result
package governance
import (
	"fmt"
	"io"
	"strconv"
	"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 GetGovParametersDepositReader struct {
	formats strfmt.Registry
}
func (o *GetGovParametersDepositReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetGovParametersDepositOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetGovParametersDepositBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetGovParametersDepositNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetGovParametersDepositInternalServerError()
		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 NewGetGovParametersDepositOK() *GetGovParametersDepositOK {
	return &GetGovParametersDepositOK{}
}
type GetGovParametersDepositOK struct {
	Payload *GetGovParametersDepositOKBody
}
func (o *GetGovParametersDepositOK) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/deposit][%d] getGovParametersDepositOK  %+v", 200, o.Payload)
}
func (o *GetGovParametersDepositOK) GetPayload() *GetGovParametersDepositOKBody {
	return o.Payload
}
func (o *GetGovParametersDepositOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetGovParametersDepositOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetGovParametersDepositBadRequest() *GetGovParametersDepositBadRequest {
	return &GetGovParametersDepositBadRequest{}
}
type GetGovParametersDepositBadRequest struct {
}
func (o *GetGovParametersDepositBadRequest) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/deposit][%d] getGovParametersDepositBadRequest ", 400)
}
func (o *GetGovParametersDepositBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetGovParametersDepositNotFound() *GetGovParametersDepositNotFound {
	return &GetGovParametersDepositNotFound{}
}
type GetGovParametersDepositNotFound struct {
}
func (o *GetGovParametersDepositNotFound) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/deposit][%d] getGovParametersDepositNotFound ", 404)
}
func (o *GetGovParametersDepositNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetGovParametersDepositInternalServerError() *GetGovParametersDepositInternalServerError {
	return &GetGovParametersDepositInternalServerError{}
}
type GetGovParametersDepositInternalServerError struct {
}
func (o *GetGovParametersDepositInternalServerError) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/deposit][%d] getGovParametersDepositInternalServerError ", 500)
}
func (o *GetGovParametersDepositInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type GetGovParametersDepositOKBody struct {
	Height string `json:"height,omitempty"`
	Result *GetGovParametersDepositOKBodyResult `json:"result,omitempty"`
}
func (o *GetGovParametersDepositOKBody) 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
}
func (o *GetGovParametersDepositOKBody) validateResult(formats strfmt.Registry) error {
	if swag.IsZero(o.Result) {  
		return nil
	}
	if o.Result != nil {
		if err := o.Result.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("getGovParametersDepositOK" + "." + "result")
			}
			return err
		}
	}
	return nil
}
func (o *GetGovParametersDepositOKBody) MarshalBinary() ([]byte, error) {
	if o == nil {
		return nil, nil
	}
	return swag.WriteJSON(o)
}
func (o *GetGovParametersDepositOKBody) UnmarshalBinary(b []byte) error {
	var res GetGovParametersDepositOKBody
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*o = res
	return nil
}
type GetGovParametersDepositOKBodyResult struct {
	MaxDepositPeriod string `json:"max_deposit_period,omitempty"`
	MinDeposit []*models.Coin `json:"min_deposit"`
}