Skip to content

Universal Swagger export. Configurable export from Swagger json file. Also has auto Schema types mapping!

License

Notifications You must be signed in to change notification settings

FrameMuse/universal-swagger-exporter

Repository files navigation

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.