git.iko.soy/typeable/openapi3
on master help sign in
Add ToSchema instance for Float
09525acNickolay Kudasov
src/Data/Swagger/Schema/Internal.hs+3
@@ -57,6 +57,9 @@ instance ToSchema Word64 where toSchema = toSchemaBoundedIntegral
57instance ToSchema Double where
57instance ToSchema Double where
58 toSchema _ = mempty { _schemaType = SchemaNumber }
58 toSchema _ = mempty { _schemaType = SchemaNumber }
59
59
60+instance ToSchema Float where
61+ toSchema _ = mempty { _schemaType = SchemaNumber }
62+
60instance ToSchema a => ToSchema (Maybe a) where
63instance ToSchema a => ToSchema (Maybe a) where
61 toSchema _ = toSchema (Proxy :: Proxy a)
64 toSchema _ = toSchema (Proxy :: Proxy a)
62
65