From 3047b4732e502f851cb1d641240f0e6912a699fe Mon Sep 17 00:00:00 2001 From: Usman Jamil Date: Tue, 16 May 2023 15:26:21 +0100 Subject: [PATCH] CP-2907: Update screen density type from int to float64 --- context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/context.go b/context.go index 99968e9..91fd3a5 100644 --- a/context.go +++ b/context.go @@ -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`