func (o *GetTreasuryIndicatorsOKBody) 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 treasury indicators o k body
package treasury
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)
type GetTreasuryIndicatorsReader struct {
	formats strfmt.Registry
}
func (o *GetTreasuryIndicatorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetTreasuryIndicatorsOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	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 NewGetTreasuryIndicatorsOK() *GetTreasuryIndicatorsOK {
	return &GetTreasuryIndicatorsOK{}
}
type GetTreasuryIndicatorsOK struct {
	Payload *GetTreasuryIndicatorsOKBody
}
func (o *GetTreasuryIndicatorsOK) Error() string {
	return fmt.Sprintf("[GET /treasury/indicators][%d] getTreasuryIndicatorsOK  %+v", 200, o.Payload)
}
func (o *GetTreasuryIndicatorsOK) GetPayload() *GetTreasuryIndicatorsOKBody {
	return o.Payload
}
func (o *GetTreasuryIndicatorsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetTreasuryIndicatorsOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
type GetTreasuryIndicatorsOKBody struct {
	Height string `json:"height,omitempty"`
	Result *GetTreasuryIndicatorsOKBodyResult `json:"result,omitempty"`
}