This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove plan drive type and nic type enums (#156)
The [previous fix for plan drive type](https://github.com/equinix-labs/metal-go/155) did not work; it turns out that the API plan data includes plans with drive type `NVMe` _and_ plans with drive type `NVME`. As mentioned on the previous PR, adding both options to the enum generates invalid code, and we don't have a practical way to enable case-insensitive comparisons for string enums. Reverting the plan drive type to a plain string uncovered a different issue with the nic type enum: some plans (`storage` type, possibly others) include the following for drives and nics: ```json "drives": [ { "count": 0, "size": "", "type": "" } ], "nics": [ { "count": 0, "type": "" } ] ``` Rather than test `nullable: true` here, I opted to change the nic type to a plain string as well.
- Loading branch information