Skip to content

Commit

Permalink
Temporarily hack hypervisor delete SDK code
Browse files Browse the repository at this point in the history
There is currently a bug where the service needs the remove
hypervisor cluster POST request to use snake case for the
id field, eg:

```
{"hypervisor_cluster_ids":["50af582d-3b98-570f-b113-650da9d0d633"]}
```

This should not be the case since the OpenAPI spec uses camelCase.
For now switch to use snake_case. Once the service is updated to conform
to the OpenAPI specification we will revert this change.
  • Loading branch information
stuart-mclaren-hpe committed Nov 18, 2024
1 parent 47810f4 commit bafc39c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) GetHyperviso
// Serialize serializes information the current object
func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetHypervisorClusterIds() != nil {
err := writer.WriteCollectionOfStringValues("hypervisorClusterIds", m.GetHypervisorClusterIds())
err := writer.WriteCollectionOfStringValues("hypervisor_cluster_ids", m.GetHypervisorClusterIds())
if err != nil {
return err
}
Expand Down

0 comments on commit bafc39c

Please sign in to comment.