Skip to content

Commit ffed981

Browse files
Allow sha field to be missing in JSON serialization.
1 parent 0531c91 commit ffed981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub/Data/GitData.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ instance FromJSON File where
255255
<*> o .: "status"
256256
<*> o .:? "raw_url"
257257
<*> o .: "additions"
258-
<*> o .: "sha"
258+
<*> o .:? "sha"
259259
<*> o .: "changes"
260260
<*> o .:? "patch"
261261
<*> o .: "filename"

0 commit comments

Comments
 (0)