swagger-schematics
v1.0.0-alpha.9
Published
Schematics types and API generator via Swagger scheme
Downloads
2
Readme
Swagger Schematics
Generate TS types and API via swagger scheme using Schematics.
Currently, it supports only Angular 14+. Going to support React templates soon.
Documentation in progress...
How to use?
- Install package
npm i -D swagger-schematics
- Run schematic
schematics swagger-schematics:api swaggerUrl --path=/src/app/core
schematics swagger-schematics:types swaggerUrl --path=/src/app/core
- Enjoy!
Docs
Options
| Name | Type | Description |
|------------------| --- |-----------------------------------------------------------------|
| usePredictions
| string | Analyze method summary and try to predict method name or prefix |
| path
| string | Path to folder where to generate files |