swagger-har
IN DEVELOPMENT - API NOT STABLE
This module converts OpenAPI (aka Swagger) schemas object into an array of HAR request objects.
$ npm install swagger-har
const SwaggerHAR = ;const options = {};SwaggerHAR;
Options
const defaults = 'useExamples': true 'useDefaults': true 'defaults': string: 'string' integer: '0' number: '0' boolean: 'true' file: 'filename.txt' path: '/sum' method: 'get';
Lab test
The project has integration and unit tests. To run the test within the project type one of the following commands.
$ lab$ lab -r html -o coverage.html$ lab -r html -o coverage.html --lint$ lab -r console -o stdout -r html -o coverage.html --lint
Issues
If you find any issue please file here on github and I will try and fix them.