
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
swagger-api-codegen-cli
Advanced tools
yarn add -D swagger-api-codegen-cli
Usage: sac [options]
Options:
-v, --version 当前版本
-c, --config <configFilePath> 配置文件 Array<{packageName, outputDir, swaggerUrl, generateApiConfig}>
-p, --package <packageName> 构建指定单个package
-h, --help 显示命令帮助
sac --config example/confifg.jssac --config example/confifg.js --package oms// swagger-typescript-api配置
const generateApiConfig = {};
/**
* Array<{
* @property packageName 包名
* @property outputDir 生成文件的输出目录(针对当前项目根目录)
* @property swaggerUrl 一份swagger http url
* @property generateApiConfig swagger-typescript-api配置
* }>
*/
module.exports = [
{
packageName: 'oms',
outputDir: 'packages/sem/api',
swaggerUrl: 'http://localhost:3000/oms.json',
generateApiConfig: {
...generateApiConfig
},
},
{
packageName: 'sem',
outputDir: 'packages/oms/api',
swaggerUrl: 'http://localhost:3000/sem.json',
generateApiConfig: {
...generateApiConfig
},
}
];
// yarn & lerna 工程目录
├── example (项目根路径)
├── package.json
├── packages
├── oms
├── api
├── api.ts (生成的文件)
├── sem
├── api
├── api.ts (生成的文件)
FAQs
## 1. 安装 & 使用
We found that swagger-api-codegen-cli 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.