diff --git a/models/workspace/shared/shared_workspace.go b/models/workspace/shared/shared_workspace.go index d8604d1..03af1e3 100644 --- a/models/workspace/shared/shared_workspace.go +++ b/models/workspace/shared/shared_workspace.go @@ -19,10 +19,10 @@ type SharedWorkspace struct { Version string `json:"version,omitempty" bson:"version,omitempty"` Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"` Attributes map[string]interface{} `json:"attributes,omitempty" bson:"attributes,omitempty"` - Workspaces []string `json:"workspaces" bson:"workspaces"` - Workflows []string `json:"workflows" bson:"workflows"` - Peers []string `json:"peers" bson:"peers"` - Rules []string `json:"rules" bson:"rules"` + Workspaces []string `json:"workspaces,omitempty" bson:"workspaces,omitempty"` + Workflows []string `json:"workflows,omitempty" bson:"workflows,omitempty"` + Peers []string `json:"peers,omitempty" bson:"peers,omitempty"` + Rules []string `json:"rules,omitempty" bson:"rules,omitempty"` SharedRules []*rule.Rule `json:"shared_rules,omitempty" bson:"-"` SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty" bson:"-"`