func (o *PostStakingDelegatorsDelegatorAddrDelegationsBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateAmount(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateBaseReq(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateDelegatorAddress(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateValidatorAddress(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this post staking delegators delegator addr delegations body
package staking
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 PostStakingDelegatorsDelegatorAddrDelegationsReader struct {
	formats strfmt.Registry
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewPostStakingDelegatorsDelegatorAddrDelegationsOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPostStakingDelegatorsDelegatorAddrDelegationsBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewPostStakingDelegatorsDelegatorAddrDelegationsUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPostStakingDelegatorsDelegatorAddrDelegationsInternalServerError()
		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 NewPostStakingDelegatorsDelegatorAddrDelegationsOK() *PostStakingDelegatorsDelegatorAddrDelegationsOK {
	return &PostStakingDelegatorsDelegatorAddrDelegationsOK{}
}
type PostStakingDelegatorsDelegatorAddrDelegationsOK struct {
	Payload *models.BroadcastTxCommitResult
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsOK) Error() string {
	return fmt.Sprintf("[POST /staking/delegators/{delegatorAddr}/delegations][%d] postStakingDelegatorsDelegatorAddrDelegationsOK  %+v", 200, o.Payload)
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsOK) GetPayload() *models.BroadcastTxCommitResult {
	return o.Payload
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.BroadcastTxCommitResult)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPostStakingDelegatorsDelegatorAddrDelegationsBadRequest() *PostStakingDelegatorsDelegatorAddrDelegationsBadRequest {
	return &PostStakingDelegatorsDelegatorAddrDelegationsBadRequest{}
}
type PostStakingDelegatorsDelegatorAddrDelegationsBadRequest struct {
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsBadRequest) Error() string {
	return fmt.Sprintf("[POST /staking/delegators/{delegatorAddr}/delegations][%d] postStakingDelegatorsDelegatorAddrDelegationsBadRequest ", 400)
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewPostStakingDelegatorsDelegatorAddrDelegationsUnauthorized() *PostStakingDelegatorsDelegatorAddrDelegationsUnauthorized {
	return &PostStakingDelegatorsDelegatorAddrDelegationsUnauthorized{}
}
type PostStakingDelegatorsDelegatorAddrDelegationsUnauthorized struct {
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsUnauthorized) Error() string {
	return fmt.Sprintf("[POST /staking/delegators/{delegatorAddr}/delegations][%d] postStakingDelegatorsDelegatorAddrDelegationsUnauthorized ", 401)
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewPostStakingDelegatorsDelegatorAddrDelegationsInternalServerError() *PostStakingDelegatorsDelegatorAddrDelegationsInternalServerError {
	return &PostStakingDelegatorsDelegatorAddrDelegationsInternalServerError{}
}
type PostStakingDelegatorsDelegatorAddrDelegationsInternalServerError struct {
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsInternalServerError) Error() string {
	return fmt.Sprintf("[POST /staking/delegators/{delegatorAddr}/delegations][%d] postStakingDelegatorsDelegatorAddrDelegationsInternalServerError ", 500)
}
func (o *PostStakingDelegatorsDelegatorAddrDelegationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type PostStakingDelegatorsDelegatorAddrDelegationsBody struct {
	Amount *models.Coin `json:"amount,omitempty"`
	BaseReq *models.BaseReq `json:"base_req,omitempty"`
	DelegatorAddress models.Address `json:"delegator_address,omitempty"`
	ValidatorAddress models.ValidatorAddress `json:"validator_address,omitempty"`
}