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

Organization: make usesSAML field optional when deserializing #187

Merged
merged 1 commit into from
Feb 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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