Skip to content

Commit

Permalink
Merge pull request #162 from grendel-consulting/bugfixes
Browse files Browse the repository at this point in the history
fix: reflect bugfixes in Kolide API
  • Loading branch information
ramirezj committed Jun 26, 2024
2 parents fdf7538 + c7622b4 commit 7c1459d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions kolide/client/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 2 additions & 4 deletions kolide/client/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions kolide/client/registration_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7c1459d

Please sign in to comment.