/swag-jv

Generate JSON validators from Open API specification.

Primary LanguageTypeScriptMIT LicenseMIT

swag-jv npm version

A type definition generator from Open API 3.0 spec.

Requirements

Install

$ yarn add swag-jv

How to use

This command will generate validator functions for each schemas.

$ swag-jv generate swagger.yml --dist validators

CLI Options

Usage: swag-jv [options] [command]

Generate JSON validator from Open API spec

Options:
  -V, --version              output the version number
  -h, --help                 output usage information

Commands:
  generate [options] <file>
  convert [options] <file>

License

MIT