git.iko.soy/typeable/swagger2
on master help sign in
Simplify example in docs
commit30f0e953cf763b7a1b3b2b14eabd23d03e9c2fa0 authorNickolay Kudasov <nickolay.kudasov@gmail.com> dateFri 22 Jan 2016, 01:16 (11 years ago) parentd70163a
1 file changed+1−2
src/Data/Swagger.hs+1−2
src/Data/Swagger.hs+1−2
@@ -166,8 +166,7 @@ import Data.Swagger.Internal
166166-- encode $ (mempty :: Swagger) & paths .~
167167-- [ ("/user", mempty & get ?~ (mempty
168168-- & produces ?~ MimeList ["application/json"]
169−-- & responses .~ (mempty
170−-- & responses . at 200 ?~ Inline (mempty & schema ?~ Ref (Reference "#/definitions/User")))))]
169+-- & at 200 ?~ Inline (mempty & schema ?~ Ref (Reference "#/definitions/User")))) ]
171170-- :}
172171-- "{\"swagger\":\"2.0\",\"info\":{\"version\":\"\",\"title\":\"\"},\"paths\":{\"/user\":{\"get\":{\"responses\":{\"200\":{\"schema\":{\"$ref\":\"#/definitions/#/definitions/User\"},\"description\":\"\"}},\"produces\":[\"application/json\"]}}}}"
173172--