diff --git a/bin/typescript-angular2-petstore-all.sh b/bin/typescript-angular2-petstore-all.sh
new file mode 100755
index 000000000000..b3fc0df2126f
--- /dev/null
+++ b/bin/typescript-angular2-petstore-all.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+SCRIPT="$0"
+
+while [ -h "$SCRIPT" ] ; do
+ ls=`ls -ld "$SCRIPT"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ SCRIPT="$link"
+ else
+ SCRIPT=`dirname "$SCRIPT"`/"$link"
+ fi
+done
+
+if [ ! -d "${APP_DIR}" ]; then
+ APP_DIR=`dirname "$SCRIPT"`/..
+ APP_DIR=`cd "${APP_DIR}"; pwd`
+fi
+
+executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
+
+if [ ! -f "$executable" ]
+then
+ mvn clean package
+fi
+
+# if you've executed sbt assembly previously it will use that instead.
+export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
+
+echo "Typescript Petstore API client (default)"
+ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l typescript-angular2 -o samples/client/petstore/typescript-angular2/default"
+java $JAVA_OPTS -jar $executable $ags
+
+echo "Typescript Petstore API client (npm setting)"
+ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l typescript-angular2 -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular2/npm"
+java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/typescript-node-petstore-all.sh b/bin/typescript-node-petstore-all.sh
new file mode 100755
index 000000000000..65f25060725d
--- /dev/null
+++ b/bin/typescript-node-petstore-all.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+SCRIPT="$0"
+
+while [ -h "$SCRIPT" ] ; do
+ ls=`ls -ld "$SCRIPT"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ SCRIPT="$link"
+ else
+ SCRIPT=`dirname "$SCRIPT"`/"$link"
+ fi
+done
+
+if [ ! -d "${APP_DIR}" ]; then
+ APP_DIR=`dirname "$SCRIPT"`/..
+ APP_DIR=`cd "${APP_DIR}"; pwd`
+fi
+
+executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
+
+if [ ! -f "$executable" ]
+then
+ mvn clean package
+fi
+
+# if you've executed sbt assembly previously it will use that instead.
+export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
+
+echo "Typescript node Petstore API client (default setting)"
+ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l typescript-node -o samples/client/petstore/typescript-node/default"
+java $JAVA_OPTS -jar $executable $ags
+
+echo "Typescript node Petstore API client with npm setting"
+ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l typescript-node -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-node/npm"
+java $JAVA_OPTS -jar $executable $ags
diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ScalaClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ScalaClientCodegen.java
index 12467f12efef..b740ba552a1e 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ScalaClientCodegen.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ScalaClientCodegen.java
@@ -87,6 +87,8 @@ public class ScalaClientCodegen extends DefaultCodegen implements CodegenConfig
supportingFiles.add(new SupportingFile( "gradle-wrapper.jar",
gradleWrapperPackage.replace( ".", File.separator ), "gradle-wrapper.jar") );
+ supportingFiles.add(new SupportingFile("build.sbt.mustache", "", "build.sbt"));
+
importMapping.remove("List");
importMapping.remove("Set");
importMapping.remove("Map");
diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngular2ClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngular2ClientCodegen.java
index 6a945249af6c..c9dd10b2a58e 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngular2ClientCodegen.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngular2ClientCodegen.java
@@ -68,6 +68,8 @@ public class TypeScriptAngular2ClientCodegen extends AbstractTypeScriptClientCod
supportingFiles.add(new SupportingFile("models.mustache", modelPackage().replace('.', File.separatorChar), "models.ts"));
supportingFiles.add(new SupportingFile("apis.mustache", apiPackage().replace('.', File.separatorChar), "api.ts"));
supportingFiles.add(new SupportingFile("index.mustache", getIndexDirectory(), "index.ts"));
+ supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
+ supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
if(additionalProperties.containsKey(NPM_NAME)) {
addNpmPackageGeneration();
diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngularClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngularClientCodegen.java
index 242293fc258c..2853c1b379bf 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngularClientCodegen.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngularClientCodegen.java
@@ -21,7 +21,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode
super.processOpts();
supportingFiles.add(new SupportingFile("api.d.mustache", apiPackage().replace('.', File.separatorChar), "api.d.ts"));
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
- //supportingFiles.add(new SupportingFile("gitignore.mustache", "", ".gitignore"));
+ supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
}
diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptFetchClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptFetchClientCodegen.java
index 90f778eae8e8..cf25259e61c8 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptFetchClientCodegen.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptFetchClientCodegen.java
@@ -30,6 +30,7 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege
supportingFiles.add(new SupportingFile("package.json.mustache", "", "package.json"));
supportingFiles.add(new SupportingFile("typings.json.mustache", "", "typings.json"));
supportingFiles.add(new SupportingFile("tsconfig.json.mustache", "", "tsconfig.json"));
+ supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
if(additionalProperties.containsKey(NPM_NAME)) {
this.setNpmName(additionalProperties.get(NPM_NAME).toString());
diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptNodeClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptNodeClientCodegen.java
index 516d34b9810b..db9e2fcf2ad6 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptNodeClientCodegen.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptNodeClientCodegen.java
@@ -41,6 +41,7 @@ public class TypeScriptNodeClientCodegen extends AbstractTypeScriptClientCodegen
super.processOpts();
supportingFiles.add(new SupportingFile("api.mustache", null, "api.ts"));
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
+ supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
if(additionalProperties.containsKey(NPM_NAME)) {
addNpmPackageGeneration();
diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache
index 58bab66e13d6..14d1c224c1ef 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache
@@ -98,6 +98,15 @@ public class ApiClient {
return json;
}
+ public Client getHttpClient() {
+ return httpClient;
+ }
+
+ public ApiClient setHttpClient(Client httpClient) {
+ this.httpClient = httpClient;
+ return this;
+ }
+
public String getBasePath() {
return basePath;
}
diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache
index 75eabc5b0a6c..d6b51a2f8844 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/pom.mustache
@@ -110,27 +110,6 @@
{{/java8}}
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 1.2.1
-
-
- gradle-test
- integration-test
-
- exec
-
-
- gradle
-
- check
-
-
-
-
-
diff --git a/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache
index 3b301e0937ce..36a484258ec0 100644
--- a/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache
+++ b/modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache
@@ -489,7 +489,7 @@
} else {
for (var k in data) {
if (data.hasOwnProperty(k))
- result[k] = exports.convertToType(data[k], itemType);
+ obj[k] = exports.convertToType(data[k], itemType);
}
}
};
diff --git a/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache
index 20c303e40eb1..df1b5e05acec 100644
--- a/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
import * as querystring from "querystring";
import * as url from "url";
diff --git a/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/gitignore b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/gitignore
new file mode 100644
index 000000000000..35e2fb2b02ed
--- /dev/null
+++ b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/gitignore
@@ -0,0 +1,3 @@
+wwwroot/*.js
+node_modules
+typings
diff --git a/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/licenseInfo.mustache b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/licenseInfo.mustache
new file mode 100644
index 000000000000..861d97234cfa
--- /dev/null
+++ b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/licenseInfo.mustache
@@ -0,0 +1,23 @@
+/**
+ * {{{appName}}}
+ * {{{appDescription}}}
+ *
+ * {{#version}}OpenAPI spec version: {{{version}}}{{/version}}
+ * {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/api-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/api-header.mustache
index a93709b1fd59..02880a18859f 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/api-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/api-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
{{#operations}}/*
* {{classname}}.h
*
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/api-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/api-source.mustache
index 6ecbdb1a0f58..b6312e37a7fd 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/api-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/api-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
{{#operations}}
#include "{{classname}}.h"
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/apiclient-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/apiclient-header.mustache
index 97bd2f823e18..ba975f011556 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/apiclient-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/apiclient-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* ApiClient.h
*
@@ -72,4 +73,4 @@ protected:
}
{{/apiNamespaceDeclarations}}
-#endif /* ApiClient_H_ */
\ No newline at end of file
+#endif /* ApiClient_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/apiclient-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/apiclient-source.mustache
index cdb62a507b49..541125433167 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/apiclient-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/apiclient-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
#include "ApiClient.h"
#include "MultipartFormData.h"
#include "ModelBase.h"
@@ -128,4 +129,4 @@ pplx::task ApiClient::callApi(
{{#apiNamespaceDeclarations}}
}
-{{/apiNamespaceDeclarations}}
\ No newline at end of file
+{{/apiNamespaceDeclarations}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-header.mustache
index 0463650572b3..32411f411805 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* ApiConfiguration.h
*
@@ -48,4 +49,4 @@ protected:
{{#apiNamespaceDeclarations}}
}
{{/apiNamespaceDeclarations}}
-#endif /* ApiConfiguration_H_ */
\ No newline at end of file
+#endif /* ApiConfiguration_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-source.mustache
index 7585bc109243..6e0d4e9147e3 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/apiconfiguration-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
#include "ApiConfiguration.h"
{{#apiNamespaceDeclarations}}
@@ -64,4 +65,4 @@ void ApiConfiguration::setApiKey( const utility::string_t& prefix, const utility
{{#apiNamespaceDeclarations}}
}
-{{/apiNamespaceDeclarations}}
\ No newline at end of file
+{{/apiNamespaceDeclarations}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/apiexception-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/apiexception-header.mustache
index 94a464028585..483d7dab4235 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/apiexception-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/apiexception-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* ApiException.h
*
@@ -45,4 +46,4 @@ protected:
}
{{/apiNamespaceDeclarations}}
-#endif /* ApiBase_H_ */
\ No newline at end of file
+#endif /* ApiBase_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/apiexception-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/apiexception-source.mustache
index c6276211b61a..5da062ddbfef 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/apiexception-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/apiexception-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
#include "ApiException.h"
{{#apiNamespaceDeclarations}}
@@ -37,4 +38,4 @@ std::map& ApiException::getHeaders()
{{#apiNamespaceDeclarations}}
}
-{{/apiNamespaceDeclarations}}
\ No newline at end of file
+{{/apiNamespaceDeclarations}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-header.mustache
index 931300311187..e79f575061f6 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* HttpContent.h
*
@@ -53,4 +54,4 @@ protected:
}
{{/modelNamespaceDeclarations}}
-#endif /* HttpContent_H_ */
\ No newline at end of file
+#endif /* HttpContent_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-source.mustache
index c6d9c6da608c..791515a205da 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/httpcontent-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
#include "HttpContent.h"
{{#modelNamespaceDeclarations}}
@@ -70,4 +71,4 @@ void HttpContent::writeTo( std::ostream& stream )
{{#modelNamespaceDeclarations}}
}
-{{/modelNamespaceDeclarations}}
\ No newline at end of file
+{{/modelNamespaceDeclarations}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/ihttpbody-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/ihttpbody-header.mustache
index 50ccf4a4d636..34604e0048e9 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/ihttpbody-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/ihttpbody-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* IHttpBody.h
*
@@ -26,4 +27,4 @@ public:
}
{{/modelNamespaceDeclarations}}
-#endif /* IHttpBody_H_ */
\ No newline at end of file
+#endif /* IHttpBody_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-header.mustache
index 3dfcba1458ef..4a146c5373d7 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* JsonBody.h
*
@@ -33,4 +34,4 @@ protected:
}
{{/modelNamespaceDeclarations}}
-#endif /* JsonBody_H_ */
\ No newline at end of file
+#endif /* JsonBody_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-source.mustache
index c787471e5d40..05074527b286 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/jsonbody-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
#include "JsonBody.h"
{{#modelNamespaceDeclarations}}
@@ -20,4 +21,4 @@ void JsonBody::writeTo( std::ostream& target )
{{#modelNamespaceDeclarations}}
}
-{{/modelNamespaceDeclarations}}
\ No newline at end of file
+{{/modelNamespaceDeclarations}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/licenseInfo.mustache b/modules/swagger-codegen/src/main/resources/cpprest/licenseInfo.mustache
new file mode 100644
index 000000000000..861d97234cfa
--- /dev/null
+++ b/modules/swagger-codegen/src/main/resources/cpprest/licenseInfo.mustache
@@ -0,0 +1,23 @@
+/**
+ * {{{appName}}}
+ * {{{appDescription}}}
+ *
+ * {{#version}}OpenAPI spec version: {{{version}}}{{/version}}
+ * {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/model-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/model-header.mustache
index 615a00f57e2c..9515743a8ffe 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/model-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/model-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
{{#models}}{{#model}}/*
* {{classname}}.h
*
@@ -66,4 +67,4 @@ protected:
#endif /* {{classname}}_H_ */
{{/model}}
-{{/models}}
\ No newline at end of file
+{{/models}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/model-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/model-source.mustache
index c784bb4eb47f..a1985735d4a7 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/model-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/model-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
{{#models}}{{#model}}
#include "{{classname}}.h"
@@ -251,4 +252,4 @@ void {{classname}}::unset{{name}}()
{{/modelNamespaceDeclarations}}
{{/model}}
-{{/models}}
\ No newline at end of file
+{{/models}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/modelbase-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/modelbase-header.mustache
index 9505286ec973..262b154acd7b 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/modelbase-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/modelbase-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* ModelBase.h
*
@@ -73,4 +74,4 @@ public:
}
{{/modelNamespaceDeclarations}}
-#endif /* ModelBase_H_ */
\ No newline at end of file
+#endif /* ModelBase_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/modelbase-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/modelbase-source.mustache
index dce2c3eb3b41..4d9ee6b40a09 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/modelbase-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/modelbase-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
#include "ModelBase.h"
{{#modelNamespaceDeclarations}}
@@ -334,4 +335,4 @@ double ModelBase::doubleFromHttpContent(std::shared_ptr val)
{{#modelNamespaceDeclarations}}
}
-{{/modelNamespaceDeclarations}}
\ No newline at end of file
+{{/modelNamespaceDeclarations}}
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/multipart-header.mustache b/modules/swagger-codegen/src/main/resources/cpprest/multipart-header.mustache
index f6e1b7743790..0835ed926676 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/multipart-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/multipart-header.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
/*
* MultipartFormData.h
*
@@ -46,4 +47,4 @@ protected:
}
{{/modelNamespaceDeclarations}}
-#endif /* MultipartFormData_H_ */
\ No newline at end of file
+#endif /* MultipartFormData_H_ */
diff --git a/modules/swagger-codegen/src/main/resources/cpprest/multipart-source.mustache b/modules/swagger-codegen/src/main/resources/cpprest/multipart-source.mustache
index 64b59113050b..507bda518397 100644
--- a/modules/swagger-codegen/src/main/resources/cpprest/multipart-source.mustache
+++ b/modules/swagger-codegen/src/main/resources/cpprest/multipart-source.mustache
@@ -1,3 +1,4 @@
+{{>licenseInfo}}
#include "MultipartFormData.h"
#include "ModelBase.h"
@@ -96,4 +97,4 @@ void MultipartFormData::writeTo( std::ostream& target )
{{#modelNamespaceDeclarations}}
}
-{{/modelNamespaceDeclarations}}
\ No newline at end of file
+{{/modelNamespaceDeclarations}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache
index 26f7f564ff57..4f2519fbef53 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache
@@ -1,7 +1,5 @@
-
-
-
+
+
{{{appName}}}