func (o *CreateExecutionParams) validateProjectID(formats strfmt.Registry) error {
	if err := validate.Pattern("projectId", "path", o.ProjectID, `[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`); err != nil {
		return err
	}
	return nil
}
validateProjectID carries on validations for parameter ProjectID
package operations
import (
	"net/http"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/runtime/middleware"
	"github.com/go-openapi/validate"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/MontFerret/ferret-server/server/http/api/models"
)
func NewCreateExecutionParams() CreateExecutionParams {
	return CreateExecutionParams{}
}
type CreateExecutionParams struct {
	HTTPRequest *http.Request `json:"-"`
	Body *models.ExecutionInput
	ProjectID string
}
func (o *CreateExecutionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
	var res []error
	o.HTTPRequest = r
	if runtime.HasBody(r) {
		defer r.Body.Close()
		var body models.ExecutionInput
		if err := route.Consumer.Consume(r.Body, &body); err != nil {
			res = append(res, errors.NewParseError("body", "body", "", err))
		} else {
			if err := body.Validate(route.Formats); err != nil {
				res = append(res, err)
			}
			if len(res) == 0 {
				o.Body = &body
			}
		}
	}
	rProjectID, rhkProjectID, _ := route.Params.GetOK("projectId")
	if err := o.bindProjectID(rProjectID, rhkProjectID, route.Formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *CreateExecutionParams) bindProjectID(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	o.ProjectID = raw
	if err := o.validateProjectID(formats); err != nil {
		return err
	}
	return nil
}