Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from uswitch/cp-2907
Browse files Browse the repository at this point in the history
CP-2907: Update screen density type from int to float64
  • Loading branch information
UsmanJ authored May 16, 2023
2 parents 30e6f7a + 3047b47 commit 3421687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ type ReferrerInfo struct {
// This type provides the representation of the `context.screen` object as
// defined in https://segment.com/docs/spec/common/#context
type ScreenInfo struct {
Density int `json:"density,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Density float64 `json:"density,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
}

// Satisfy the `json.Marshaler` interface. We have to flatten out the `Extra`
Expand Down

0 comments on commit 3421687

Please sign in to comment.