Skip to content

LiJiahaoCoder/swagger2ts

Repository files navigation

Swagger to TypeScript

build badge coverage badge license badge

This project can transform Swagger Schema to TypeScript type or interface😉

⚠️ This tool is only for Swagger 2.0, OpenAPI 3.0 is to be developed.

How to use?

Open project website:

website

Then copy Swagger Schema Request URL to the input (or paste schema into editor):

swagger-editor

Finally, you can get TypeScript code:

result

You can also download or copy the transformed result by clicking proper icon button.

About

Transform swagger schema to TypeScript type or interface✌️

Resources

License

Stars

Watchers

Forks