@hn3000/swagger-example-generator
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Swagger API Example generator

This tool generates examples for a swagger-api spec using json-schema-faker.

It has an API and a simple CLI:

swagger-example-generator --spec api.swagger.yaml --examples examples.json

It will print a JSON file containing examples keyed to the schemas from the api spec by json pointers. By default it creates a single example request for every operation and one for each of the declared responses found in the API spec.

Package Sidebar

Install

npm i @hn3000/swagger-example-generator

Weekly Downloads

3

Version

0.2.2

License

MIT

Unpacked Size

71.2 kB

Total Files

14

Last publish

Collaborators

  • hn3000