func (m ActivityStreamContext) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateActivityStreamContextEnum("", "body", m); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this activity stream context
package models
import (
	"encoding/json"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/validate"
)
type ActivityStreamContext string
const (
	ActivityStreamContextMYFEED ActivityStreamContext = "MYFEED"
	ActivityStreamContextUSERID ActivityStreamContext = "USER_ID"
	ActivityStreamContextNODEID ActivityStreamContext = "NODE_ID"
)
var activityStreamContextEnum []interface{}
func init() {
	var res []ActivityStreamContext
	if err := json.Unmarshal([]byte(`["MYFEED","USER_ID","NODE_ID"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		activityStreamContextEnum = append(activityStreamContextEnum, v)
	}
}
func (m ActivityStreamContext) validateActivityStreamContextEnum(path, location string, value ActivityStreamContext) error {
	if err := validate.Enum(path, location, value, activityStreamContextEnum); err != nil {
		return err
	}
	return nil
}