vultr / govultr

Vultr Go API client
MIT License
230 stars 56 forks source link

[BUG] - IPV6 info struct is different to the doc #304

Closed jiekun closed 5 months ago

jiekun commented 5 months ago

Describe the bug As described in the API doc: https://www.vultr.com/api/#tag/instances/operation/list-instances , the data structure of IPV6 related fields is an array.

image

Currently, govultr using 3 flat fields: https://github.com/vultr/govultr/blob/5125e02e715ae6eb3ce854f0e7116c7ce545a710/instance.go#L98

optik-aper commented 5 months ago

It looks like the docs are old and incorrect based on what's coming out of the API: image

jiekun commented 5 months ago

Thank you for the confirmation.