Skip to content

Commit

Permalink
GCLOUD2-12829 Remove validation from VolumeType Unmarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
gbernady committed Jan 9, 2024
1 parent c8980a4 commit b0ad36a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gcore/volume/v1/volumes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,7 @@ func (vt *VolumeType) UnmarshalJSON(data []byte) error {
if err := json.Unmarshal(data, &s); err != nil {
return err
}
v := VolumeType(s)
err := v.IsValid()
if err != nil {
return err
}
*vt = v
*vt = VolumeType(s)
return nil
}

Expand Down

0 comments on commit b0ad36a

Please sign in to comment.