From 24fe99cfa5544382853aa4b31f9a42cb36615fa8 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 27 Jan 2025 11:40:10 +0100 Subject: [PATCH] adding inputs output struct based on argo naming for now --- models/resources/data.go | 2 +- models/resources/storage.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/resources/data.go b/models/resources/data.go index 967ec28..8d8ff3e 100644 --- a/models/resources/data.go +++ b/models/resources/data.go @@ -50,7 +50,7 @@ func (abs *DataResource) ConvertToPricedResource( type DataInstance struct { ResourceInstance[*DataResourcePartnership] - Source string `json:"source,omitempty" bson:"source,omitempty"` // Source is the source of the data + Source string `json:"source" bson:"source"` // Source is the source of the data } type DataResourcePartnership struct { diff --git a/models/resources/storage.go b/models/resources/storage.go index 38ac6e8..ed8931c 100644 --- a/models/resources/storage.go +++ b/models/resources/storage.go @@ -42,7 +42,7 @@ func (abs *StorageResource) ConvertToPricedResource( type StorageResourceInstance struct { ResourceInstance[*StorageResourcePartnership] - Source string `bson:"source,omitempty" json:"source,omitempty"` // Source is the source of the storage + Source string `bson:"source" json:"source"` // Source is the source of the storage Local bool `bson:"local" json:"local"` SecurityLevel string `bson:"security_level,omitempty" json:"security_level,omitempty"` SizeType enum.StorageSize `bson:"size_type" json:"size_type" default:"0"` // SizeType is the type of the storage size