func (action *ServiceExample) Validate() (errs *validation.FieldError) {
	return errs.Also(
		validation.ErrIfBlank(action.Name, "name"),
		validation.ErrIfBlank(action.Description, "description"),
		validation.ErrIfBlank(action.PlanId, "plan_id"),
	)
}
Validate implements validation.Validatable.
package broker
import "github.com/GoogleCloudPlatform/gcp-service-broker/pkg/validation"
type ServiceExample struct {
	Name string `json:"name" yaml:"name"`
	Description string `json:"description" yaml:"description"`
	PlanId string `json:"plan_id" yaml:"plan_id"`
	ProvisionParams map[string]interface{} `json:"provision_params" yaml:"provision_params"`
	BindParams map[string]interface{} `json:"bind_params" yaml:"bind_params"`
}
var _ validation.Validatable = (*ServiceExample)(nil)