From 61ef33bc69f4af0640a9a67806f0f13b429d5769 Mon Sep 17 00:00:00 2001
From: Mason Katz <Mason.Katz@SoftIron.com>
Date: Wed, 21 Feb 2024 14:43:34 -0800
Subject: [PATCH] fix: swaggertype for datastore enums

---
 cloud/datastore.go               | 4 ++--
 deprecated/v2/cloud/datastore.go | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cloud/datastore.go b/cloud/datastore.go
index d15cb94..3de55f7 100644
--- a/cloud/datastore.go
+++ b/cloud/datastore.go
@@ -35,9 +35,9 @@ type Datastore struct {
 	DatastoreMAD       string         `json:"datastore_mad" yaml:"datastore_mad"`
 	TransferManagerMAD string         `json:"transfer_manager_mad" yaml:"transfer_manager_mad"`
 	BasePath           string         `json:"base_path" yaml:"base_path"`
-	Type               DatastoreType  `json:"type" yaml:"type" enums:"image,system,file"`
+	Type               DatastoreType  `json:"type" yaml:"type" swaggertype:"string" enums:"image,system,file"`
 	DiskType           int            `json:"disk_type" yaml:"disk_type"`
-	State              DatastoreState `json:"state" yaml:"state" enums:"ready,disabled"`
+	State              DatastoreState `json:"state" yaml:"state" swaggertype:"string" enums:"ready,disabled"`
 	Clusters           []int          `json:"clusters" yaml:"clusters"`
 	TotalMB            int            `json:"total_mb" yaml:"total_mb"`
 	FreeMB             int            `json:"free_mb" yaml:"free_mb"`
diff --git a/deprecated/v2/cloud/datastore.go b/deprecated/v2/cloud/datastore.go
index 75c1f05..e8ed847 100644
--- a/deprecated/v2/cloud/datastore.go
+++ b/deprecated/v2/cloud/datastore.go
@@ -35,9 +35,9 @@ type Datastore struct {
 	DatastoreMAD       string            `json:"datastore_mad" yaml:"datastore_mad"`
 	TransferManagerMAD string            `json:"transfer_manager_mad" yaml:"transfer_manager_mad"`
 	BasePath           string            `json:"base_path" yaml:"base_path"`
-	Type               DatastoreType     `json:"type" yaml:"type" enum:"image,system,file"`
+	Type               DatastoreType     `json:"type" yaml:"type" swaggertype:"string" enum:"image,system,file"`
 	DiskType           int               `json:"disk_type" yaml:"disk_type"`
-	State              DatastoreState    `json:"state" yaml:"state" enum:"ready,disabled"`
+	State              DatastoreState    `json:"state" yaml:"state" swaggertype:"string" enum:"ready,disabled"`
 	Clusters           []int             `json:"clusters" yaml:"clusters"`
 	TotalMB            int               `json:"total_mb" yaml:"total_mb"`
 	FreeMB             int               `json:"free_mb" yaml:"free_mb"`