Skip to content

Custom formatter implementation for mountebank that allows using a OpenApi specification file as a configuration file.

License

Notifications You must be signed in to change notification settings

kaiquekk-opus/mountebank-openapi-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mountebank OpenAPI Formatter

This is a custom formatter for mountebank that builds an imposter structure from an OpenAPI specification file when it is passed as a configuration file.

The formatter parses the OpenAPI structure and tries to build the stubs based on the definitions of the requests, responses and schemas found. It returns the built imposter object to mountebank and saves it on a json file as well so it can be more easily customized and optimized. The name of the created json file is the service title found in the OpenAPI specification file.

Requirements

Installation

npm install

Usage

mb --configfile path/to/openapi.yaml --formatter ./src/formatter.js

About

Custom formatter implementation for mountebank that allows using a OpenApi specification file as a configuration file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published