tzinov15 / swagger-bank Goto Github PK
View Code? Open in Web Editor NEWA library to bridge Swagger API specifications and the Mountebank Test-Double tool
Home Page: https://tzinov15.github.io/swagger-bank/
A library to bridge Swagger API specifications and the Mountebank Test-Double tool
Home Page: https://tzinov15.github.io/swagger-bank/
I assume you need to pass the entire API as a single .yaml
file.
Would be nice to be able to pass it as an object as well (I did in my fork).
Also would be nice to be able to gradually build up the API per main domain or service. I guess the objects could just be merged into one final API object?
const SwaggerBank = require('swaggerbank');
const api = new SwaggerBank.API()
for (let service of services) {
api.add(service.docs);
}
api.validateAPI()
.then( () => {
api.setupMountebankImposter(3000);
})
What do you think?
Hello, I'm receiving the following error when try to install this package now. Any help would be appreciated, thanks.
> [email protected] postinstall /Users/rohith.palagiri/Documents/mountApp/node_modules/mountebank-helper/node_modules/mountebank
> cd mbTest && npm install
sh: line 0: cd: mbTest: No such file or directory
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `cd mbTest && npm install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): RangeError: Maximum call stack size exceeded
Similar issues were found with swagger ui
swagger-api/swagger-ui#3012 (comment)
Could just throw an error to inform of this issue in their swagger doc.
Wdyt? @Tzinov15
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.