git.iko.soy/typeable/swagger2
on master help sign in
Fix Operation FromJSON
4778bc3Nickolay Kudasov
src/Data/Swagger/Internal.hs+3−1
@@ -1133,7 +1133,9 @@ instance FromJSON Response where
1133
1133
1134instance FromJSON Operation where
1134instance FromJSON Operation where
1135 parseJSON = genericParseJSON (jsonPrefix "operation")
1135 parseJSON = genericParseJSON (jsonPrefix "operation")
1136− `withDefaults` [ "security" .= ([] :: [SecurityRequirement]) ]
1136+ `withDefaults` [ "security" .= ([] :: [SecurityRequirement])
1137+ , "tags" .= ([] :: [Tag])
1138+ , "parameters" .= ([] :: [Referenced Param]) ]
1137
1139
1138instance FromJSON PathItem where
1140instance FromJSON PathItem where
1139 parseJSON = genericParseJSON (jsonPrefix "pathItem")
1141 parseJSON = genericParseJSON (jsonPrefix "pathItem")