func (m *SubjectSet) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateNamespace(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateObject(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateRelation(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this subject set
package models
import (
	"context"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type SubjectSet struct {
	Namespace *string `json:"namespace"`
	Object *string `json:"object"`
	Relation *string `json:"relation"`
}