Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e870a84

Browse files
toddmohneyphadej
authored andcommitted
Allow created_at field to be null
1 parent 6f916af commit e870a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub/Data/PublicSSHKeys.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ data PublicSSHKey = PublicSSHKey
2727
, publicSSHKeyUrl :: !URL
2828
, publicSSHKeyTitle :: !Text
2929
, publicSSHKeyVerified :: !Bool
30-
, publicSSHKeyCreatedAt :: !UTCTime
30+
, publicSSHKeyCreatedAt :: !(Maybe UTCTime)
3131
, publicSSHKeyReadOnly :: !Bool
3232
}
3333
deriving (Show, Data, Typeable, Eq, Ord, Generic)
@@ -39,7 +39,7 @@ instance FromJSON PublicSSHKey where
3939
<*> o .: "url"
4040
<*> o .: "title"
4141
<*> o .: "verified"
42-
<*> o .: "created_at"
42+
<*> o .:? "created_at"
4343
<*> o .: "read_only"
4444

4545
data NewPublicSSHKey = NewPublicSSHKey

0 commit comments

Comments
 (0)