0.5.0 • Published 2 years ago

universal-swagger-exporter v0.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Universal Swagger Exporter

A configurable Swagger exporter that parse json data to actions and schemas in TypeScript.

Auto schema type mapping

I placed it in a GitHub Gist right here

Setup

Install via npm, better as dependency, run this command

npm i -D swagger-export-actions

Usage

Run swagger-export-actions with input and output options

npx swagger-export-actions --in data/api.json --out out/data

Notices

Query Params

They are stored in params property, you will have to handle it in your intercepter.

Action Import

It is imported as how I would like to use it, you may have to change it.