From 7ca360be6aa498fe0d60743e6de57a89bbbf8629 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 27 Jan 2025 14:15:12 +0100 Subject: [PATCH] adding inputs output struct based on argo naming for now --- models/resources/resource_model/resource_model.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/models/resources/resource_model/resource_model.go b/models/resources/resource_model/resource_model.go index c2b4006..407cdfb 100644 --- a/models/resources/resource_model/resource_model.go +++ b/models/resources/resource_model/resource_model.go @@ -7,11 +7,6 @@ import ( "cloud.o-forge.io/core/oc-lib/tools" ) -type WebResource struct { - Protocol string `bson:"protocol,omitempty" json:"protocol,omitempty"` // Protocol is the protocol of the URL - Path string `bson:"path,omitempty" json:"path,omitempty"` // Path is the path of the URL -} - type Model struct { Type string `json:"type,omitempty" bson:"type,omitempty"` // Type is the type of the model ReadOnly bool `json:"readonly,omitempty" bson:"readonly,omitempty"` // ReadOnly is the readonly of the model @@ -25,8 +20,9 @@ type Model struct { type ResourceModel struct { utils.AbstractObject ResourceType string `json:"resource_type,omitempty" bson:"resource_type,omitempty" validate:"required"` - VarRefs map[string]string `json:"var_refs,omitempty" bson:"var_refs,omitempty"` // VarRefs is the variable references of the model Model map[string]map[string]Model `json:"model,omitempty" bson:"model,omitempty"` + Inputs []string `json:"inputs,omitempty" bson:"inputs,omitempty"` + Outputs []string `json:"outputs,omitempty" bson:"outputs,omitempty"` } func (d *ResourceModel) StoreDraftDefault() {