swagger-testcheck
v0.0.2
Published
Generate testcheck generators from swagger definition
Downloads
5
Readme
swagger-testcheck
Generates testcheck.js generators from a swagger definition. It only looks at the definitions
field in the swagger definition, and creates one generator per definition. For nested definitions (using $ref
), the generators are duplicated - this is because $ref
can point to other files.
Usage
npm i -g swagger-testcheck
swagger-testcheck api-definition.yaml
The command will write the generated javascript to stdout
, to save it to a file run swagger-testcheck api.yaml >> generators.js
.