klasik 1.0.10 → 1.0.11
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.
|
@@ -37,6 +37,7 @@ exports.K8sClientGenerator = void 0;
|
|
|
37
37
|
const openapi_class_transformer_1 = require("openapi-class-transformer");
|
|
38
38
|
const spec_downloader_1 = require("./spec-downloader");
|
|
39
39
|
const fs = __importStar(require("fs"));
|
|
40
|
+
const path = __importStar(require("path"));
|
|
40
41
|
class K8sClientGenerator {
|
|
41
42
|
constructor() {
|
|
42
43
|
this.downloader = new spec_downloader_1.SpecDownloader();
|
|
@@ -54,6 +55,8 @@ class K8sClientGenerator {
|
|
|
54
55
|
url: specUrl,
|
|
55
56
|
headers,
|
|
56
57
|
timeout,
|
|
58
|
+
// If keepSpec is true, save the spec in the output directory
|
|
59
|
+
outputPath: keepSpec ? path.join(outputDir, 'openapi-spec.json') : undefined,
|
|
57
60
|
};
|
|
58
61
|
specPath = await this.downloader.download(downloadOptions);
|
|
59
62
|
// Step 2: Validate output directory
|
package/package.json
CHANGED