Closed isovector closed 6 years ago
The FromJSON instance for Layer used to do this:
FromJSON
Layer
(o .: "objects" <|> pure Nothing)
but this implementation will silently fail if "objects" fails to parse. Which it always did because it incorrectly assumed the types and mandatory-ness of many of its fields.
"objects"
Awesome! Thanks man! Hey, what's hspec-discover?
hspec-discover
https://hspec.github.io/hspec-discover.html
The
FromJSON
instance forLayer
used to do this:but this implementation will silently fail if
"objects"
fails to parse. Which it always did because it incorrectly assumed the types and mandatory-ness of many of its fields.