// BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface
// for simple values it will use straight method calls
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface
for simple values it will use straight method calls
// BindRequest both binds and validates a request it assumes that complex things implement a Validatable ( strfmt . Registry ) error interface // for simple values it will use straight method calls
func (o *GetComponentByReleaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
	var res []error
	rComponent, rhkComponent, _ := route.Params.GetOK("component")
	if err := o.bindComponent(rComponent, rhkComponent, route.Formats); err != nil {
		res = append(res, err)
	}
	rRelease, rhkRelease, _ := route.Params.GetOK("release")
	if err := o.bindRelease(rRelease, rhkRelease, route.Formats); err != nil {
		res = append(res, err)
	}
	rTrain, rhkTrain, _ := route.Params.GetOK("train")
	if err := o.bindTrain(rTrain, rhkTrain, route.Formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func ( o * GetComponentByReleaseParams ) BindRequest ( r * http . Request , route * middleware . MatchedRoute ) error { var res [ ] error rComponent , rhkComponent , _ := route . Params . GetOK ( " " ) if err := o . bindComponent ( rComponent , rhkComponent , route . Formats ) ; err != nil { res = append ( res , err ) } rRelease , rhkRelease , _ := route . Params . GetOK ( " " ) if err := o . bindRelease ( rRelease , rhkRelease , route . Formats ) ; err != nil { res = append ( res , err ) } rTrain , rhkTrain , _ := route . Params . GetOK ( " " ) if err := o . bindTrain ( rTrain , rhkTrain , route . Formats ) ; err != nil { res = append ( res , err ) } if len ( res ) > 0 { return errors . CompositeValidationError ( res ... ) } return nil }
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface
for simple values it will use straight method calls
BindRequest both binds and validates a request it assumes that complex things implement a Validatable ( strfmt . Registry ) error interface for simple values it will use straight method calls