For original usage read - original README
npm install [gitUrl] --save-dev
$ saddlebackOpenapi --help
Usage: saddlebackOpenapi [options]
Options:
-V, --version output the version number
-i, --input <value> OpenAPI specification, can be a path, url or string content
-o, --output <value> Output directory
-c, --config <value> Path to the config file
-h, --help display help for command
Examples
$ saddlebackOpenapi --input ./spec.json --output ./generated
$ saddlebackOpenapi --config ./openapi.config.json
extends original OPTIONS
input required in the config or cmd arguments
output required in the config or cmd arguments
additionalModelFileExtension optional
additionalServiceFileExtension optional
removeLodashPrefixes optional
- Default:
undefined
- Type:
string
OpenAPI specification, can be a path, url or string content (required in the config or cmd arguments)
- Default:
undefined
- Type:
string
Output directory (required in the config or cmd arguments)
- Default:
true
- Type:
boolean
Apply *.models.*
extension to model files.
For example (myModel.ts -> myModel.models.ts)
- Default:
true
- Type:
boolean
Apply *.service.*
extension to service files.
For example (myService.ts -> myService.service.ts)
- Default:
true
- Type:
boolean
Remove special prefixes that are separated by _
at the start of names.
For example (Custom_Prefix_Name -> Name)