func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateBaseReq(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this post distribution delegators delegator addr rewards validator addr body
package distribution
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 PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrReader struct {
	formats strfmt.Registry
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError()
		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 NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK() *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK {
	return &PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK{}
}
type PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK struct {
	Payload *models.BroadcastTxCommitResult
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK) Error() string {
	return fmt.Sprintf("[POST /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}][%d] postDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK  %+v", 200, o.Payload)
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK) GetPayload() *models.BroadcastTxCommitResult {
	return o.Payload
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK) 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 NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest() *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest {
	return &PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest{}
}
type PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest struct {
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest) Error() string {
	return fmt.Sprintf("[POST /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}][%d] postDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest ", 400)
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized() *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized {
	return &PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized{}
}
type PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized struct {
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized) Error() string {
	return fmt.Sprintf("[POST /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}][%d] postDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized ", 401)
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewPostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError() *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError {
	return &PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError{}
}
type PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError struct {
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError) Error() string {
	return fmt.Sprintf("[POST /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}][%d] postDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError ", 500)
}
func (o *PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type PostDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBody struct {
	BaseReq *models.BaseReq `json:"base_req,omitempty"`
}