func (m *PatchDelta) validateActionEnum(path, location string, value string) error {
	if err := validate.EnumCase(path, location, value, patchDeltaTypeActionPropEnum, true); err != nil {
		return err
	}
	return nil
}
prop value enum
package models
import (
	"context"
	"encoding/json"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type PatchDelta struct {
	Action string `json:"action,omitempty"`
	RelationTuple *InternalRelationTuple `json:"relation_tuple,omitempty"`
}
func (m *PatchDelta) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateAction(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateRelationTuple(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
var patchDeltaTypeActionPropEnum []interface{}
func init() {
	var res []string
	if err := json.Unmarshal([]byte(`["insert","delete"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		patchDeltaTypeActionPropEnum = append(patchDeltaTypeActionPropEnum, v)
	}
}
const (
	PatchDeltaActionInsert string = "insert"
	PatchDeltaActionDelete string = "delete"
)