
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
ronds-swagger-gen
Advanced tools
根据 [OpenApi3](https://swagger.io/blog/news/whats-new-in-openapi-3-0/) 文档生成 request 请求代码。
根据 OpenApi3 文档生成 request 请求代码。
| 属性 | 必填 | 备注 | 类型 |
|---|---|---|---|
| requestLibPath | 否 | 自定义请求方法路径 | string |
| requestImportStatement | 否 | 自定义请求方法表达式 | string |
| apiPrefix | 否 | api 的前缀 | string |
| serversPath | 否 | 生成的文件夹的路径 | string |
| schemaPath | 否 | openAPI 3.0 的地址 | string |
| projectName | 否 | 项目名称 | string |
| namespace | 否 | 命名空间名称 | string |
| mockFolder | 否 | mock 目录 | string |
npm i --save-dev ronds-swagger-gen
在项目根目录新建 swagger.config.js
const { generateService } = require('ronds-swagger-gen');
generateService({
schemaPath: 'http://xxxxx/swagger.json',
serversPath: './servers',
});
项目根目录执行 node ./swagger.config.js
FAQs
根据 [OpenApi3](https://swagger.io/blog/news/whats-new-in-openapi-3-0/) 文档生成 request 请求代码。
The npm package ronds-swagger-gen receives a total of 2 weekly downloads. As such, ronds-swagger-gen popularity was classified as not popular.
We found that ronds-swagger-gen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.