code: func (o *GetTaskCommentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
  
  	if err := r.SetTimeout(o.timeout); err != nil {
  		return err
  	}
  	var res []error
  
  	// path param id
  	if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil {
  		return err
  	}
  
  	if o.PageSize != nil {
  
  		// query param pageSize
  		var qrPageSize int32
  		if o.PageSize != nil {
  			qrPageSize = *o.PageSize
  		}
  		qPageSize := swag.FormatInt32(qrPageSize)
  		if qPageSize != "" {
  			if err := r.SetQueryParam("pageSize", qPageSize); err != nil {
  				return err
  			}
  		}
  
  	}
  
  	if o.Since != nil {
  
  		// query param since
  		var qrSince strfmt.DateTime
  		if o.Since != nil {
  			qrSince = *o.Since
  		}
  		qSince := qrSince.String()
  		if qSince != "" {
  			if err := r.SetQueryParam("since", qSince); err != nil {
  				return err
  			}
  		}
  
  	}
  
  	if len(res) > 0 {
  		return errors.CompositeValidationError(res...)
  	}
  	return nil
  }
docs: // WriteToRequest writes these params to a swagger request