Skip to content

Commit 4a426f4

Browse files
Update Open Api Specs (#40)
1 parent e06f441 commit 4a426f4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ public void processOpts() {
115115
supportingFiles.add(new SupportingFile("index.mustache", "src", "index.js"));
116116
supportingFiles.add(new SupportingFile("api.mustache", "src", "api.js"));
117117
supportingFiles.add(new SupportingFile("configuration.mustache", "src", "configuration.js"));
118+
supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", "src", "DefaultHttpClient.js"));
119+
supportingFiles.add(new SupportingFile("HttpClient.mustache", "src", "HttpClient.js"));
120+
118121
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
119122

120123
addNpmPackageGeneration();

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ public void preprocessOpenAPI(OpenAPI openAPI) {
282282
supportingFiles.add(new SupportingFile("index.mustache", createPath(sourceFolder, invokerPackage), "index.js"));
283283
supportingFiles.add(new SupportingFile("ApiClient.mustache", createPath(sourceFolder, invokerPackage), "ApiClient.js"));
284284
supportingFiles.add(new SupportingFile("configuration.mustache", createPath(sourceFolder, invokerPackage), "configuration.js"));
285+
supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", createPath(sourceFolder, invokerPackage), "DefaultHttpClient.js"));
286+
supportingFiles.add(new SupportingFile("abstractHttpClient.mustache", createPath(sourceFolder, invokerPackage), "abstractHttpClient.js"));
285287
supportingFiles.add(new SupportingFile("logger.mustache", createPath(sourceFolder, invokerPackage), "logger.js"));
286288
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
287289
}

0 commit comments

Comments
 (0)