git.iko.soy/typeable/swagger2
on master help sign in
fixed incorrect example in documentation
commit2ddce17c683ff0da7364784cbf764195ef655fa1 authorMartin Heuschober <epsilonhalbe@gmail.com> dateSat 11 Feb 2017, 14:34 (10 years ago) parent87e63ae
1 file changed+2−2
src/Data/Swagger/Internal/Schema.hs+2−2
src/Data/Swagger/Internal/Schema.hs+2−2
@@ -104,9 +104,9 @@ rename name (NamedSchema _ schema) = NamedSchema name schema
104104-- data Coord = Coord { x :: Double, y :: Double }
105105--
106106-- instance ToSchema Coord where
107−-- declareNamedSchema = do
107+-- declareNamedSchema _ = do
108108-- doubleSchema <- declareSchemaRef (Proxy :: Proxy Double)
109−-- return $ NamedSchema (Just \"Coord\")) $ mempty
109+-- return $ NamedSchema (Just \"Coord\") $ mempty
110110-- & type_ .~ SwaggerObject
111111-- & properties .~
112112-- [ (\"x\", doubleSchema)