Skip to content

Commit

Permalink
fix: swaggertype for datastore enums
Browse files Browse the repository at this point in the history
  • Loading branch information
masonkatz committed Feb 21, 2024
1 parent 1767055 commit 61ef33b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cloud/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions deprecated/v2/cloud/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 61ef33b

Please sign in to comment.