0.2.2 • Published 4 years ago
@hn3000/swagger-example-generator v0.2.2
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.