wyyt-swagger-to-ts
v1.0.7
Published
根据swagger定义文件生成ts代码
Downloads
21
Readme
说明
根据swagger定义文件生成ts代码
用法
npx wyyt-swagger-to-ts 接口定义文件 目标ts文件
例:
npx wyyt-swagger-to-ts ./swagger.json ./swagger.ts
帮助说明:
npx wyyt-swagger-to-ts -h
参数说明: -h: 查看帮助 -l: 根据接口列表筛选需要生成的接口 -t: 根据tag筛选需要生成的接口列表,如果有 -l参数,本参数不生效 -n: 不生成mock参数