diff --git a/kolide/client/devices.go b/kolide/client/devices.go index df3cde0..64e1692 100644 --- a/kolide/client/devices.go +++ b/kolide/client/devices.go @@ -28,8 +28,7 @@ type Device struct { } type RegisteredOwner struct { - // Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation is an "int" - Identifier int32 `json:"identifier,omitempty"` + Identifier string `json:"identifier,omitempty"` } type AuthConfiguration struct { diff --git a/kolide/client/issues.go b/kolide/client/issues.go index 30f4edd..d03de4e 100644 --- a/kolide/client/issues.go +++ b/kolide/client/issues.go @@ -25,13 +25,11 @@ type Issue struct { } type DeviceInformation struct { - // Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation is an "int" - Identifier int32 `json:"identifier,omitempty"` + Identifier string `json:"identifier,omitempty"` } type CheckInformation struct { - // Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation is an "int" - Identifier int32 `json:"identifier,omitempty"` + Identifier string `json:"identifier,omitempty"` } func (c *Client) GetIssues(cursor string, limit int32, searches ...Search) (interface{}, error) { diff --git a/kolide/client/registration_requests.go b/kolide/client/registration_requests.go index 12de345..fa25759 100644 --- a/kolide/client/registration_requests.go +++ b/kolide/client/registration_requests.go @@ -18,8 +18,7 @@ type RegistrationRequest struct { } type RequesterInformation struct { - // Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation MAY BE an "int" - Identifier int32 `json:"identifier,omitempty"` + Identifier string `json:"identifier,omitempty"` } func (c *Client) GetRegistrationRequests(cursor string, limit int32, searches ...Search) (interface{}, error) {