git.iko.soy/typeable/swagger2
on master help sign in
Add ToSchema instance for Float
commit09525acb03fffba7787ece40f0cc5ee8d36feb46 authorNickolay Kudasov <nickolay.kudasov@gmail.com> dateMon 23 Nov 2015, 16:41 (11 years ago) parent07005e2
1 file changed+3
src/Data/Swagger/Schema/Internal.hs+3
src/Data/Swagger/Schema/Internal.hs+3
@@ -57,6 +57,9 @@ instance ToSchema Word64 where toSchema = toSchemaBoundedIntegral
5757instance ToSchema Double where
5858 toSchema _ = mempty { _schemaType = SchemaNumber }
5959
60+instance ToSchema Float where
61+ toSchema _ = mempty { _schemaType = SchemaNumber }
62+
6063instance ToSchema a => ToSchema (Maybe a) where
6164 toSchema _ = toSchema (Proxy :: Proxy a)
6265