func (o *GetResourcesIDUsersBadRequestBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateType(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this get resources ID users bad request body
package resource
import (
	"encoding/json"
	"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/connector/models"
)
type GetResourcesIDUsersReader struct {
	formats strfmt.Registry
}
func (o *GetResourcesIDUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetResourcesIDUsersOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetResourcesIDUsersBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetResourcesIDUsersUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetResourcesIDUsersNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetResourcesIDUsersInternalServerError()
		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 NewGetResourcesIDUsersOK() *GetResourcesIDUsersOK {
	return &GetResourcesIDUsersOK{}
}
type GetResourcesIDUsersOK struct {
	Payload []*models.Profile
}
func (o *GetResourcesIDUsersOK) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/users][%d] getResourcesIdUsersOK  %+v", 200, o.Payload)
}
func (o *GetResourcesIDUsersOK) 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 NewGetResourcesIDUsersBadRequest() *GetResourcesIDUsersBadRequest {
	return &GetResourcesIDUsersBadRequest{}
}
type GetResourcesIDUsersBadRequest struct {
	Payload GetResourcesIDUsersBadRequestBody
}
func (o *GetResourcesIDUsersBadRequest) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/users][%d] getResourcesIdUsersBadRequest  %+v", 400, o.Payload)
}
func (o *GetResourcesIDUsersBadRequest) 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 NewGetResourcesIDUsersUnauthorized() *GetResourcesIDUsersUnauthorized {
	return &GetResourcesIDUsersUnauthorized{}
}
type GetResourcesIDUsersUnauthorized struct {
	Payload GetResourcesIDUsersUnauthorizedBody
}
func (o *GetResourcesIDUsersUnauthorized) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/users][%d] getResourcesIdUsersUnauthorized  %+v", 401, o.Payload)
}
func (o *GetResourcesIDUsersUnauthorized) 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 NewGetResourcesIDUsersNotFound() *GetResourcesIDUsersNotFound {
	return &GetResourcesIDUsersNotFound{}
}
type GetResourcesIDUsersNotFound struct {
	Payload GetResourcesIDUsersNotFoundBody
}
func (o *GetResourcesIDUsersNotFound) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/users][%d] getResourcesIdUsersNotFound  %+v", 404, o.Payload)
}
func (o *GetResourcesIDUsersNotFound) 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 NewGetResourcesIDUsersInternalServerError() *GetResourcesIDUsersInternalServerError {
	return &GetResourcesIDUsersInternalServerError{}
}
type GetResourcesIDUsersInternalServerError struct {
	Payload GetResourcesIDUsersInternalServerErrorBody
}
func (o *GetResourcesIDUsersInternalServerError) Error() string {
	return fmt.Sprintf("[GET /resources/{id}/users][%d] getResourcesIdUsersInternalServerError  %+v", 500, o.Payload)
}
func (o *GetResourcesIDUsersInternalServerError) 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 GetResourcesIDUsersBadRequestBody struct {
	Message []string `json:"message"`
	Type *string `json:"type"`
}