func (g Group) Validate() error {
	if len(g.Name) < 3 {
		return errors.New("name is too short or not set")
	}
	if len(g.Description) < 8 {
		return errors.New("description is too short or not set")
	}
	if len(g.Tags) == 0 {
		return errors.New("no tags specified")
	}
	return nil
}
Validate validates the fields of a feature group
package featuregroup
import (
	"context"
	"errors"
	"fmt"
	"regexp"
	"strings"
	"time"
	"github.com/tarkov-database/rest-api/core/database"
	"github.com/tarkov-database/rest-api/model"
	"github.com/google/logger"
	"go.mongodb.org/mongo-driver/bson"
	"go.mongodb.org/mongo-driver/bson/primitive"
	"go.mongodb.org/mongo-driver/mongo"
	"go.mongodb.org/mongo-driver/mongo/options"
)
type objectID = model.ObjectID
type timestamp = model.Timestamp
type Group struct {
	ID          objectID  `json:"_id" bson:"_id"`
	Name        string    `json:"name" bson:"name"`
	Description string    `json:"description" bson:"description"`
	Tags        []string  `json:"tags" bson:"tags"`
	Location    objectID  `json:"_location" bson:"_location"`
	Modified    timestamp `json:"_modified" bson:"_modified"`
}