code: func (u *UserTypeDefinition) Validate(ctx string, parent dslengine.Definition) *dslengine.ValidationErrors {
  	verr := new(dslengine.ValidationErrors)
  	if u.TypeName == "" {
  		verr.Add(parent, "%s - %s", ctx, "User type must have a name")
  	}
  	verr.Merge(u.AttributeDefinition.Validate(ctx, u))
  	return verr.AsError()
  }
docs: // Validate checks that the user type definition is consistent: it has a name and the attribute
  // backing the type is valid.