func (m *CredentialRequest) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateResourceID(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this credential request
package models
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	manifold "github.com/manifoldco/go-manifold"
)
type CredentialRequest struct {
	ID manifold.ID `json:"id"`
	ResourceID manifold.ID `json:"resource_id"`
}