qxun-api-generator 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -0
  2. package/package.json +3 -2
package/lib/index.js CHANGED
@@ -95,6 +95,7 @@ async function generateApi(config) {
95
95
  try {
96
96
  cp.execSync(
97
97
  `openapi-generator generate -g typescript-axios -i ${config.path} -o ${destDir}` +
98
+ ` --global-property=apiDocs=false,modelDocs=false` +
98
99
  ` --additional-properties=useSingleRequestParameter=true,ensureUniqueParams=true,stringEnums=true`,
99
100
  { stdio: "inherit" }
100
101
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qxun-api-generator",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "从 Swagger / OpenAPI 生成端到端类型安全的 TypeScript API Client",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -17,6 +17,7 @@
17
17
  "ajv": "^8.12.0",
18
18
  "axios": "^1.4.0",
19
19
  "commander": "^12.1.0",
20
- "mkdirp": "^3.0.1"
20
+ "mkdirp": "^3.0.1",
21
+ "qxun-api-generator": "^1.0.0"
21
22
  }
22
23
  }