func (m *User) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateEmail(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateStatus(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this user
package models
import (
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type User struct {
	Email *string `json:"email"`
	FirstName string `json:"first_name,omitempty"`
	Groups map[string]string `json:"groups,omitempty"`
	ID *string `json:"id"`
	LastName string `json:"last_name,omitempty"`
	Owner bool `json:"owner,omitempty"`
	ResourceType string `json:"resource_type,omitempty"`
	Status *string `json:"status"`
}