code: func (o *AddCommentToTaskBody) Validate(formats strfmt.Registry) error {
  	var res []error
  
  	if err := o.validateContent(formats); err != nil {
  		res = append(res, err)
  	}
  
  	if err := o.validateUserID(formats); err != nil {
  		res = append(res, err)
  	}
  
  	if len(res) > 0 {
  		return errors.CompositeValidationError(res...)
  	}
  	return nil
  }
docs: // Validate validates this add comment to task body