Skip to content

Commit

Permalink
fix: mark optional storage and limit params as 'omitempty'
Browse files Browse the repository at this point in the history
  • Loading branch information
acch committed Jan 7, 2025
1 parent c8c1fba commit ceeb032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/interfaces/svm.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type SvmResourceModel struct {
MaxVolumes string `mapstructure:"max_volumes,omitempty"`
Name string `mapstructure:"name,omitempty"`
SnapshotPolicy SnapshotPolicy `mapstructure:"snapshot_policy,omitempty"`
Storage Storage `mapstructure:"storage"`
Storage Storage `mapstructure:"storage,omitempty"`
SubType string `mapstructure:"subtype,omitempty"`
}

Expand All @@ -44,7 +44,7 @@ type SvmGetDataSourceModel struct {
MaxVolumes string `mapstructure:"max_volumes,omitempty"`
Name string `mapstructure:"name"`
SnapshotPolicy SnapshotPolicy `mapstructure:"snapshot_policy"`
Storage Storage `mapstructure:"storage"`
Storage Storage `mapstructure:"storage,omitempty"`
SubType string `mapstructure:"subtype,omitempty"`
UUID string `mapstructure:"uuid"`
}
Expand All @@ -61,7 +61,7 @@ type SnapshotPolicy struct {

// Storage describes the resource data model.
type Storage struct {
Limit int `mapstructure:"limit"`
Limit int `mapstructure:"limit,omitempty"`
}

// SvmDataSourceFilterModel describes the data source data model for queries.
Expand Down

0 comments on commit ceeb032

Please sign in to comment.