Data.Swagger.Schema.Generator
schemaGen :: Definitions Schema -> Schema -> Gen Value Source #
Note: schemaGen may error, if schema type is not specified, and cannot be inferred.
schemaGen
error
genValue :: ToSchema a => Proxy a -> Gen Value Source #
validateFromJSON :: forall a. (ToSchema a, FromJSON a) => Proxy a -> Property Source #