Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@xtdev/swaggerv2-to-ts
Advanced tools
一个将swagger v2.0 转换成TS接口服务工具
yarn @xtdev/swaggerv2-to-ts -D 或者
npm install @xtdev/swaggerv2-to-ts -D
cd project-name
npx swagger2ts start your-swagger-json-url
执行完成后,会在根目录下生成temp/service.ts目标文件;
确保根目录下处在temp文件夹(当然也可根据参数配置输出文件路径)
命令 | 参数 | 默认值 | 备注 |
---|---|---|---|
start | './temp/service.ts' | 生成输出文件路径(.ts结尾) | |
-p | '' | 指定需要生成的接口名称以【,】分割 (user/login,user/add) | |
-o | ./temp/service.ts | 生成输出文件路径(.ts结尾) |
npx swagger2ts start https://service.baidu.com/api/v2/api-docs -p /checkAccount/down,/checkAccount/quarterOptions -o ./tempService.ts
FAQs
将swagger V2.0 转换成TS接口服务
The npm package @xtdev/swaggerv2-to-ts receives a total of 18 weekly downloads. As such, @xtdev/swaggerv2-to-ts popularity was classified as not popular.
We found that @xtdev/swaggerv2-to-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.