this tool is built for generating typescript interface of OpenAPI schema.
json file is from OpenAPI-Specification, you can also find yaml file there, thanks for the maintenance.
this tool only for OpenAPI v3.0.x now
npm install -D @openapi-integration/openapi-schema
import { Spec } from "@openapi-integration/openapi-schema";
console.log(Spec);
- clone repo to your local
npm i
- modify code to what you want
npm run generate
to generate new interface for typescript