func ValidateUpdateRequest(input *gqlmodels.RoleInput) *validation.ErrorBag {
	return ValidateCreateRequest(input)
}
ValidateUpdateRequest validates a create request of this entity.
package role
import (
	"go-webapp-example/internal/graphql/gqlmodels"
	"go-webapp-example/pkg/validation"
)
func ValidateCreateRequest(input *gqlmodels.RoleInput) *validation.ErrorBag {
	errs := validation.NewErrorBag("role")
	if input.Name == "" {
		errs.Add("name", "required")
	}
	return errs
}