func (m ExecutionStatus) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateExecutionStatusEnum("", "body", m); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this execution status
package models
import (
	"encoding/json"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/validate"
)
type ExecutionStatus string
const (
	ExecutionStatusUnknown ExecutionStatus = "unknown"
	ExecutionStatusQueued ExecutionStatus = "queued"
	ExecutionStatusRunning ExecutionStatus = "running"
	ExecutionStatusCompleted ExecutionStatus = "completed"
	ExecutionStatusCancelled ExecutionStatus = "cancelled"
	ExecutionStatusErrored ExecutionStatus = "errored"
)
var executionStatusEnum []interface{}
func init() {
	var res []ExecutionStatus
	if err := json.Unmarshal([]byte(`["unknown","queued","running","completed","cancelled","errored"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		executionStatusEnum = append(executionStatusEnum, v)
	}
}
func (m ExecutionStatus) validateExecutionStatusEnum(path, location string, value ExecutionStatus) error {
	if err := validate.Enum(path, location, value, executionStatusEnum); err != nil {
		return err
	}
	return nil
}