mirror of
https://github.com/typeable/bloodhound.git
synced 2024-11-29 12:54:15 +03:00
fix status request
This commit is contained in:
parent
45309ae59a
commit
758d06b811
@ -173,7 +173,7 @@ data Version = Version { number :: Text
|
||||
<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-status.html#indices-status>
|
||||
-}
|
||||
|
||||
data Status = Status { ok :: Bool
|
||||
data Status = Status { ok :: Maybe Bool
|
||||
, status :: Int
|
||||
, name :: Text
|
||||
, version :: Version
|
||||
@ -1509,7 +1509,7 @@ instance FromJSON DocId
|
||||
|
||||
instance FromJSON Status where
|
||||
parseJSON (Object v) = Status <$>
|
||||
v .: "ok" <*>
|
||||
v .:? "ok" <*>
|
||||
v .: "status" <*>
|
||||
v .: "name" <*>
|
||||
v .: "version" <*>
|
||||
|
Loading…
Reference in New Issue
Block a user