Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
Organization: make usesSAML field optional when deserializing (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnr authored Feb 3, 2021
1 parent 8e93bdf commit 000552c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Fossa/FossaAPIV1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ data Organization = Organization
instance FromJSON Organization where
parseJSON = withObject "Organization" $ \obj ->
Organization <$> obj .: "organizationId"
<*> obj .: "usesSAML"
<*> obj .:? "usesSAML" .!= False

organizationEndpoint :: Url scheme -> Url scheme
organizationEndpoint baseurl = baseurl /: "api" /: "cli" /: "organization"
Expand Down

0 comments on commit 000552c

Please sign in to comment.