Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

starlog/swagger-codegen-typescript

Repository files navigation

This npm CLI tool generate various boilerplate files from your YAML to typescript.
This will add jest test environment and eslint as well. All you need to do is creating your business logic!

This npm includes 'swagger-codegen-cli.jar' from https://github.com/swagger-api/swagger-codegen. If you feel unsure, please download by yourself and replace with one from this npm.

How to install

sudo npm install -global swagger-codegen-typescript

How to use

Run command (or set alias/shell script)

swagger-codegen-typescript ~/src/washswat-api-spec/specification/order/api-order-v1-ui-get-pickup-date-list.yaml ~/src/example
swagger-codegen-typescript gen (yaml file) (destination)

About

A wrap-around typescript code generator on https://github.com/swagger-api/swagger-codegen

Resources

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /