equinix / equinix-sdk-go

Golang client for Equinix APIs
https://deploy.equinix.com/labs/equinix-sdk-go
MIT License
2 stars 4 forks source link

[Metal] Plans do not match API spec #65

Open ctreatma opened 4 days ago

ctreatma commented 4 days ago

Copied from https://github.com/equinix-labs/metal-go/issues/154

The API spec says that the type of a drive in a plan spec must be one of the following:

enum:
- HDD
- SSD
- NVME

However, the API can return the value NVMe, as mentioned in this PR comment from metal-cli: https://github.com/equinix/metal-cli/pull/350#issuecomment-1728298754

The spec needs to be updated so that all possible values for type are documented accurately in the spec.

ctreatma commented 4 days ago

In addition to the enum mentioned in the issue description, there are also other enums in the plan spec that do not appear to match all possible plans returned by the Metal API