1.0.0-alpha.9 • Published 11 months ago

swagger-schematics v1.0.0-alpha.9

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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?

  1. Install package
npm i -D swagger-schematics
  1. Run schematic
schematics swagger-schematics:api swaggerUrl --path=/src/app/core
schematics swagger-schematics:types swaggerUrl --path=/src/app/core
  1. Enjoy!

Docs

Options

NameTypeDescription
usePredictionsstringAnalyze method summary and try to predict method name or prefix
pathstringPath to folder where to generate files