func (m JobsTaskStatus) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateJobsTaskStatusEnum("", "body", m); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this jobs task status
package models
import (
	"encoding/json"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/validate"
)
type JobsTaskStatus string
const (
	JobsTaskStatusUnknown JobsTaskStatus = "Unknown"
	JobsTaskStatusIDLE JobsTaskStatus = "Idle"
	JobsTaskStatusRunning JobsTaskStatus = "Running"
	JobsTaskStatusFinished JobsTaskStatus = "Finished"
	JobsTaskStatusInterrupted JobsTaskStatus = "Interrupted"
	JobsTaskStatusPaused JobsTaskStatus = "Paused"
	JobsTaskStatusAny JobsTaskStatus = "Any"
	JobsTaskStatusError JobsTaskStatus = "Error"
	JobsTaskStatusQueued JobsTaskStatus = "Queued"
)
var jobsTaskStatusEnum []interface{}
func init() {
	var res []JobsTaskStatus
	if err := json.Unmarshal([]byte(`["Unknown","Idle","Running","Finished","Interrupted","Paused","Any","Error","Queued"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		jobsTaskStatusEnum = append(jobsTaskStatusEnum, v)
	}
}
func (m JobsTaskStatus) validateJobsTaskStatusEnum(path, location string, value JobsTaskStatus) error {
	if err := validate.Enum(path, location, value, jobsTaskStatusEnum); err != nil {
		return err
	}
	return nil
}