func (o *GetResourcesIDMeasuresNotFoundBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this get resources ID measures not found body
package resource
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/validate"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/manifoldco/grafton/generated/provider/models"
)
type GetResourcesIDMeasuresReader struct {
	formats strfmt.Registry
}
func (o *GetResourcesIDMeasuresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetResourcesIDMeasuresOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 204:
		result := NewGetResourcesIDMeasuresNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetResourcesIDMeasuresBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetResourcesIDMeasuresUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetResourcesIDMeasuresNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetResourcesIDMeasuresInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("unknown error", response, response.Code())
	}
}
func NewGetResourcesIDMeasuresOK() *GetResourcesIDMeasuresOK {
	return &GetResourcesIDMeasuresOK{}
}
type GetResourcesIDMeasuresOK struct {
	Payload *models.ResourceMeasures
}
func (o *GetResourcesIDMeasuresOK) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/measures][%d] getResourcesIdMeasuresOK  %+v", 200, o.Payload)
}
func (o *GetResourcesIDMeasuresOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.ResourceMeasures)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetResourcesIDMeasuresNoContent() *GetResourcesIDMeasuresNoContent {
	return &GetResourcesIDMeasuresNoContent{}
}
type GetResourcesIDMeasuresNoContent struct {
}
func (o *GetResourcesIDMeasuresNoContent) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/measures][%d] getResourcesIdMeasuresNoContent ", 204)
}
func (o *GetResourcesIDMeasuresNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetResourcesIDMeasuresBadRequest() *GetResourcesIDMeasuresBadRequest {
	return &GetResourcesIDMeasuresBadRequest{}
}
type GetResourcesIDMeasuresBadRequest struct {
	Payload GetResourcesIDMeasuresBadRequestBody
}
func (o *GetResourcesIDMeasuresBadRequest) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/measures][%d] getResourcesIdMeasuresBadRequest  %+v", 400, o.Payload)
}
func (o *GetResourcesIDMeasuresBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetResourcesIDMeasuresUnauthorized() *GetResourcesIDMeasuresUnauthorized {
	return &GetResourcesIDMeasuresUnauthorized{}
}
type GetResourcesIDMeasuresUnauthorized struct {
	Payload GetResourcesIDMeasuresUnauthorizedBody
}
func (o *GetResourcesIDMeasuresUnauthorized) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/measures][%d] getResourcesIdMeasuresUnauthorized  %+v", 401, o.Payload)
}
func (o *GetResourcesIDMeasuresUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetResourcesIDMeasuresNotFound() *GetResourcesIDMeasuresNotFound {
	return &GetResourcesIDMeasuresNotFound{}
}
type GetResourcesIDMeasuresNotFound struct {
	Payload GetResourcesIDMeasuresNotFoundBody
}
func (o *GetResourcesIDMeasuresNotFound) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/measures][%d] getResourcesIdMeasuresNotFound  %+v", 404, o.Payload)
}
func (o *GetResourcesIDMeasuresNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetResourcesIDMeasuresInternalServerError() *GetResourcesIDMeasuresInternalServerError {
	return &GetResourcesIDMeasuresInternalServerError{}
}
type GetResourcesIDMeasuresInternalServerError struct {
	Payload GetResourcesIDMeasuresInternalServerErrorBody
}
func (o *GetResourcesIDMeasuresInternalServerError) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/measures][%d] getResourcesIdMeasuresInternalServerError  %+v", 500, o.Payload)
}
func (o *GetResourcesIDMeasuresInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
type GetResourcesIDMeasuresBadRequestBody struct {
	Message *string `json:"message"`
}
func (o *GetResourcesIDMeasuresBadRequestBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *GetResourcesIDMeasuresBadRequestBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("getResourcesIdMeasuresBadRequest"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	if err := validate.MinLength("getResourcesIdMeasuresBadRequest"+"."+"message", "body", string(*o.Message), 3); err != nil {
		return err
	}
	if err := validate.MaxLength("getResourcesIdMeasuresBadRequest"+"."+"message", "body", string(*o.Message), 256); err != nil {
		return err
	}
	return nil
}
type GetResourcesIDMeasuresInternalServerErrorBody struct {
	Message *string `json:"message"`
}
func (o *GetResourcesIDMeasuresInternalServerErrorBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *GetResourcesIDMeasuresInternalServerErrorBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("getResourcesIdMeasuresInternalServerError"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	if err := validate.MinLength("getResourcesIdMeasuresInternalServerError"+"."+"message", "body", string(*o.Message), 3); err != nil {
		return err
	}
	if err := validate.MaxLength("getResourcesIdMeasuresInternalServerError"+"."+"message", "body", string(*o.Message), 256); err != nil {
		return err
	}
	return nil
}
type GetResourcesIDMeasuresNotFoundBody struct {
	Message *string `json:"message"`
}