Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML.

The Request Hash will include also the pattern (regular expressions) of the fields, parameters, default values...

The output of this gem will be following the specification of Request Hashes: https://github.com/MarioRuiz/Request-Hash

The Request Hashes generated will be able to be used with any Ruby Http Client and it is adapted even better with nice_http gem: https://github.com/MarioRuiz/nice_http

A beautiful way to access and use the generated files is by using pry: https://github.com/pry/pry

To be able to generate random requests take a look at the documentation for nice_hash gem: https://github.com/MarioRuiz/nice_hash

This is an example of a generated request hash:

Programming language: Ruby
License: MIT License
Tags: Testing     Mock     Swagger    

OpenApiImport alternatives and similar gems

Based on the "Mock" category.
Alternatively, view open_api_import alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of OpenApiImport or a related project?

Add another 'Mock' Gem