equinixmetal-archive / packngo

[Deprecated] A Golang client for the Equinix Metal API. (Packet is now Equinix Metal)
https://deploy.equinix.com/labs/equinix-sdk-go/
Other
79 stars 60 forks source link

FabricServiceToken.ExpiresAt must be nullable #339

Closed displague closed 2 years ago

displague commented 2 years ago

The ExpiresAt field in FabricServiceToken may be null in API responses.

https://github.com/packethost/packngo/blob/46c24be88530be6cbfc873ec4b3c04882eb430d0/fabric_service_tokens.go#L16

The Timestamp field should be *Timestamp.