api-core-lib 12.0.41 → 12.0.43
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.
- package/dist/cli.cjs +10 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -140,9 +140,16 @@ README.md
|
|
|
140
140
|
`-g typescript-axios`,
|
|
141
141
|
`-o "${typesOutputPath}"`,
|
|
142
142
|
`--ignore-file-override "${ignoreFilePath}"`,
|
|
143
|
-
//
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
// ==========================================================
|
|
144
|
+
// ## البداية: التعديل النهائي والنهج الصحيح ##
|
|
145
|
+
// ==========================================================
|
|
146
|
+
// [إصلاح] هذا هو النهج الصحيح لتوليد النماذج فقط.
|
|
147
|
+
// نحن نحدد بالضبط ما نريد توليده (Models) وما لا نريده (APIs, Supporting Files).
|
|
148
|
+
"--global-property models,apis=false,supportingFiles=false",
|
|
149
|
+
// ==========================================================
|
|
150
|
+
// ## النهاية: التعديل النهائي والنهج الصحيح ##
|
|
151
|
+
// ==========================================================
|
|
152
|
+
`--additional-properties=supportsES6=true,useSingleRequestParameter=true,withInterfaces=true,modelPropertyNaming=original`
|
|
146
153
|
].join(" ");
|
|
147
154
|
console.log(import_chalk.default.gray(`Executing command: npx @openapitools/openapi-generator-cli...`));
|
|
148
155
|
(0, import_child_process.execSync)(generatorCommand, { stdio: "inherit" });
|