swagger2-2.6: Swagger 2.0 data model

Safe HaskellNone
LanguageHaskell2010

Data.Swagger.Schema.Generator

Synopsis

Documentation

schemaGen :: Definitions Schema -> Schema -> Gen Value Source #

Note: schemaGen may error, if schema type is not specified, and cannot be inferred.

genValue :: ToSchema a => Proxy a -> Gen Value Source #

validateFromJSON :: forall a. (ToSchema a, FromJSON a) => Proxy a -> Property Source #