git.iko.soy/typeable/swagger2
on master help sign in
Fix quotes in ToSchema docs
79a11f7Nickolay Kudasov
src/Data/Swagger/Internal/Schema.hs+4−4
@@ -76,15 +76,15 @@ rename name (_, schema) = (name, schema)
76-- data Coord = Coord { x :: Double, y :: Double }
76-- data Coord = Coord { x :: Double, y :: Double }
77--
77--
78-- instance ToSchema Coord where
78-- instance ToSchema Coord where
79−-- declareNamedSchema = pure (Just "Coord", schema)
79+-- declareNamedSchema = pure (Just \"Coord\", schema)
80-- where
80-- where
81-- schema = mempty
81-- schema = mempty
82-- & schemaType .~ SwaggerObject
82-- & schemaType .~ SwaggerObject
83-- & schemaProperties .~
83-- & schemaProperties .~
84−-- [ ("x", toSchemaRef (Proxy :: Proxy Double))
84+-- [ (\"x\", toSchemaRef (Proxy :: Proxy Double))
85−-- , ("y", toSchemaRef (Proxy :: Proxy Double))
85+-- , (\"y\", toSchemaRef (Proxy :: Proxy Double))
86-- ]
86-- ]
87−-- & schemaRequired .~ [ "x", "y" ]
87+-- & schemaRequired .~ [ \"x\", \"y\" ]
88-- @
88-- @
89--
89--
90-- Instead of manually writing your @'ToSchema'@ instance you can
90-- Instead of manually writing your @'ToSchema'@ instance you can