| Copyright | (c) Rodrigo Setti 2017 |
|---|---|
| License | BSD3 |
| Maintainer | rodrigosetti@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Test.Swagger.Gen
Description
Exposes generateRequest, which creates a random request from a Swagger
schema.
- generateRequest :: Seed -> Int -> Swagger -> Maybe OperationId -> (Operation, HttpRequest)
Documentation
generateRequest :: Seed -> Int -> Swagger -> Maybe OperationId -> (Operation, HttpRequest) Source #
Given a swagger.json schema, produce a Request that complies with the schema. The return type is a random Request (in the IO monad because it's random).