code: func optionsForTransform(mediaType negotiation.MediaTypeOptions, req *http.Request) (interface{}, error) {
  	switch target := mediaType.Convert; {
  	case target == nil:
  	case target.Kind == "Table" && target.GroupVersion() == metav1beta1.SchemeGroupVersion:
  		opts := &metav1beta1.TableOptions{}
  		if err := metav1beta1.ParameterCodec.DecodeParameters(req.URL.Query(), metav1beta1.SchemeGroupVersion, opts); err != nil {
  			return nil, err
  		}
  		switch errs := validation.ValidateTableOptions(opts); len(errs) {
  		case 0:
  			return opts, nil
  		case 1:
  			return nil, errors.NewBadRequest(fmt.Sprintf("Unable to convert to Table as requested: %v", errs[0].Error()))
  		default:
  			return nil, errors.NewBadRequest(fmt.Sprintf("Unable to convert to Table as requested: %v", errs))
  		}
  	}
  	return nil, nil
  }
docs: // optionsForTransform will load and validate any additional query parameter options for
  // a conversion or return an error.