func (t *WorkItemLinkType) CheckValidForCreation() error {
	if t.Name == "" {
		return errors.NewBadParameterError("name", t.Name)
	}
	if uuid.Equal(t.SourceTypeID, uuid.Nil) {
		return errors.NewBadParameterError("source_type_name", t.SourceTypeID)
	}
	if uuid.Equal(t.TargetTypeID, uuid.Nil) {
		return errors.NewBadParameterError("target_type_name", t.TargetTypeID)
	}
	if t.ForwardName == "" {
		return errors.NewBadParameterError("forward_name", t.ForwardName)
	}
	if t.ReverseName == "" {
		return errors.NewBadParameterError("reverse_name", t.ReverseName)
	}
	if err := CheckValidTopology(t.Topology); err != nil {
		return errs.WithStack(err)
	}
	if t.LinkCategoryID == uuid.Nil {
		return errors.NewBadParameterError("link_category_id", t.LinkCategoryID)
	}
	if t.SpaceID == uuid.Nil {
		return errors.NewBadParameterError("space_id", t.SpaceID)
	}
	return nil
}
// CheckValidForCreation returns an error if the work item link type
// cannot be used for the creation of a new work item link type.
CheckValidForCreation returns an error if the work item link type
cannot be used for the creation of a new work item link type.
// CheckValidForCreation returns an error if the work item link type // cannot be used for the creation of a new work item link type .
func (t *WorkItemLinkType) CheckValidForCreation() error {
	if t.Name == "" {
		return errors.NewBadParameterError("name", t.Name)
	}
	if uuid.Equal(t.SourceTypeID, uuid.Nil) {
		return errors.NewBadParameterError("source_type_name", t.SourceTypeID)
	}
	if uuid.Equal(t.TargetTypeID, uuid.Nil) {
		return errors.NewBadParameterError("target_type_name", t.TargetTypeID)
	}
	if t.ForwardName == "" {
		return errors.NewBadParameterError("forward_name", t.ForwardName)
	}
	if t.ReverseName == "" {
		return errors.NewBadParameterError("reverse_name", t.ReverseName)
	}
	if err := CheckValidTopology(t.Topology); err != nil {
		return errs.WithStack(err)
	}
	if t.LinkCategoryID == uuid.Nil {
		return errors.NewBadParameterError("link_category_id", t.LinkCategoryID)
	}
	if t.SpaceID == uuid.Nil {
		return errors.NewBadParameterError("space_id", t.SpaceID)
	}
	return nil
}
func ( t * WorkItemLinkType ) CheckValidForCreation ( ) error { if t . Name == " " { return errors . NewBadParameterError ( " " , t . Name ) } if uuid . Equal ( t . SourceTypeID , uuid . Nil ) { return errors . NewBadParameterError ( " " , t . SourceTypeID ) } if uuid . Equal ( t . TargetTypeID , uuid . Nil ) { return errors . NewBadParameterError ( " " , t . TargetTypeID ) } if t . ForwardName == " " { return errors . NewBadParameterError ( " " , t . ForwardName ) } if t . ReverseName == " " { return errors . NewBadParameterError ( " " , t . ReverseName ) } if err := CheckValidTopology ( t . Topology ) ; err != nil { return errs . WithStack ( err ) } if t . LinkCategoryID == uuid . Nil { return errors . NewBadParameterError ( " " , t . LinkCategoryID ) } if t . SpaceID == uuid . Nil { return errors . NewBadParameterError ( " " , t . SpaceID ) } return nil }
CheckValidForCreation returns an error if the work item link type
cannot be used for the creation of a new work item link type.
CheckValidForCreation returns an error if the work item link type cannot be used for the creation of a new work item link type .