0.0.2 • Published 7 years ago

swagger-testcheck v0.0.2

Weekly downloads
1
License
GPL V3
Repository
-
Last release
7 years ago

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.