Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@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 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.