Skip to content

Commit

Permalink
Support null descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Feldman committed May 8, 2017
1 parent b8d4be3 commit ea5a927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Article.elm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ decoderWithBody =
baseArticleDecoder : Decoder (a -> Article a)
baseArticleDecoder =
decode Article
|> required "description" Decode.string
|> required "description" (Decode.map (Maybe.withDefault "") (Decode.nullable Decode.string))
|> required "slug" (Decode.map Slug Decode.string)
|> required "title" Decode.string
|> required "tagList" (Decode.list Decode.string)
Expand Down

0 comments on commit ea5a927

Please sign in to comment.