From 050e6022cb8d2e8696c98a88360dd2daab4c6975 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 26 Aug 2024 14:58:54 +0200 Subject: [PATCH] simplify call to peer --- models/workspace/shared/shared_workspace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/workspace/shared/shared_workspace.go b/models/workspace/shared/shared_workspace.go index b782892..1759ec0 100644 --- a/models/workspace/shared/shared_workspace.go +++ b/models/workspace/shared/shared_workspace.go @@ -15,8 +15,8 @@ import ( type SharedWorkspace struct { utils.AbstractObject CreatorID string `json:"peer_id,omitempty" bson:"peer_id,omitempty" validate:"required"` - Version string `json:"version,omitempty" bson:"version,omitempty" validate:"required"` - Description string `json:"description,omitempty" bson:"description,omitempty"` + 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"`