diff --git a/models/workspace/shared/shared_workspace.go b/models/workspace/shared/shared_workspace.go index 1759ec0..4b4a6e0 100644 --- a/models/workspace/shared/shared_workspace.go +++ b/models/workspace/shared/shared_workspace.go @@ -18,15 +18,15 @@ 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,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"` + Workspaces []string `json:"workspaces" bson:"workspaces"` + Workflows []string `json:"workflows" bson:"workflows"` + Peers []string `json:"peers" bson:"peers"` + Rules []string `json:"rules" bson:"rules"` - SharedRules []*rule.Rule `json:"shared_rules,omitempty"` - SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty"` - SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty"` - SharedPeers []*peer.Peer `json:"shared_peers,omitempty"` + SharedRules []*rule.Rule `json:"shared_rules,omitempty" bson:"-"` + SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty" bson:"-"` + SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty" bson:"-"` + SharedPeers []*peer.Peer `json:"shared_peers,omitempty" bson:"-"` } func (ao *SharedWorkspace) GetID() string {