headerParams) {
// TODO: support oauth
}
-}
\ No newline at end of file
+}
diff --git a/modules/swagger-codegen/src/main/resources/flaskConnexion/swagger.mustache b/modules/swagger-codegen/src/main/resources/flaskConnexion/swagger.mustache
index 51560926bba..7f569370307 100644
--- a/modules/swagger-codegen/src/main/resources/flaskConnexion/swagger.mustache
+++ b/modules/swagger-codegen/src/main/resources/flaskConnexion/swagger.mustache
@@ -1 +1 @@
-{{{swagger-yaml}}}
\ No newline at end of file
+{{{swagger-yaml}}}
diff --git a/modules/swagger-codegen/src/main/resources/go/api.mustache b/modules/swagger-codegen/src/main/resources/go/api.mustache
index ee828484ef3..0209e8590c3 100644
--- a/modules/swagger-codegen/src/main/resources/go/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/go/api.mustache
@@ -95,7 +95,7 @@ func (a {{classname}}) {{nickname}}({{#allParams}}{{paramName}} {{{dataType}}}{{
{{/queryParams}}{{/hasQueryParams}}
// to determine the Content-Type header
- localVarHttpContentTypes := []string{ {{#consumes}}"{{mediaType}}", {{/consumes}} }
+ localVarHttpContentTypes := []string{ {{#consumes}}"{{{mediaType}}}", {{/consumes}} }
// set Content-Type header
localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes)
@@ -104,7 +104,7 @@ func (a {{classname}}) {{nickname}}({{#allParams}}{{paramName}} {{{dataType}}}{{
}
// to determine the Accept header
localVarHttpHeaderAccepts := []string{
- {{#produces}}"{{mediaType}}",
+ {{#produces}}"{{{mediaType}}}",
{{/produces}} }
// set Accept header
diff --git a/modules/swagger-codegen/src/main/resources/go/api_doc.mustache b/modules/swagger-codegen/src/main/resources/go/api_doc.mustache
index e91082ffc99..3c3444474ee 100644
--- a/modules/swagger-codegen/src/main/resources/go/api_doc.mustache
+++ b/modules/swagger-codegen/src/main/resources/go/api_doc.mustache
@@ -35,8 +35,8 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: {{#consumes}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- - **Accept**: {{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
+ - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
+ - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/modules/swagger-codegen/src/main/resources/go/model.mustache b/modules/swagger-codegen/src/main/resources/go/model.mustache
index fd799a0e35d..4c01066a0d3 100644
--- a/modules/swagger-codegen/src/main/resources/go/model.mustache
+++ b/modules/swagger-codegen/src/main/resources/go/model.mustache
@@ -11,4 +11,4 @@ type {{classname}} struct {
{{name}} {{{datatype}}} `json:"{{baseName}},omitempty"`
{{/vars}}
}
-{{/model}}{{/models}}
\ No newline at end of file
+{{/model}}{{/models}}
diff --git a/modules/swagger-codegen/src/main/resources/go/pom.mustache b/modules/swagger-codegen/src/main/resources/go/pom.mustache
index 5cfbc0428c3..3bb3e5a136c 100644
--- a/modules/swagger-codegen/src/main/resources/go/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/go/pom.mustache
@@ -72,4 +72,4 @@
-
\ No newline at end of file
+
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/bodyParam.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/bodyParam.mustache
index 45b0373e9c5..05421c449d7 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/bodyParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/bodyParam.mustache
@@ -1,3 +1,3 @@
{{#isBodyParam}}{{baseName}} {{^required}}(optional){{/required}}{{#required}}(required){{/required}}
- Body Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isBodyParam}}
\ No newline at end of file
+ Body Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isBodyParam}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/formParam.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/formParam.mustache
index 33b46101417..842f78a4ce2 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/formParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/formParam.mustache
@@ -1,3 +1,3 @@
{{#isFormParam}}{{baseName}} {{^required}}(optional){{/required}}{{#required}}(required){{/required}}
- Form Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isFormParam}}
\ No newline at end of file
+ Form Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isFormParam}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/headerParam.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/headerParam.mustache
index f5390e7aea1..0a8c618d433 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/headerParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/headerParam.mustache
@@ -1,3 +1,3 @@
{{#isHeaderParam}}{{baseName}} {{^required}}(optional){{/required}}{{#required}}(required){{/required}}
- Header Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isHeaderParam}}
\ No newline at end of file
+ Header Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isHeaderParam}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache
index 60da5979a89..e7a8d9bf322 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache
@@ -61,7 +61,7 @@
This API call consumes the following media types via the Content-Type request header:
{{#consumes}}
- {{mediaType}}
+ {{{mediaType}}}
{{/consumes}}
{{/hasConsumes}}
@@ -118,7 +118,7 @@
the media type will be conveyed by the Content-Type response header.
{{#produces}}
- {{mediaType}}
+ {{{mediaType}}}
{{/produces}}
{{/hasProduces}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/pathParam.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/pathParam.mustache
index b3590871cfa..3e88b564f9a 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/pathParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/pathParam.mustache
@@ -1,3 +1,3 @@
{{#isPathParam}}{{baseName}} {{^required}}(optional){{/required}}{{#required}}(required){{/required}}
- Path Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isPathParam}}
\ No newline at end of file
+ Path Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isPathParam}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/queryParam.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/queryParam.mustache
index 27f02a23d81..fb0275993ea 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/queryParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/queryParam.mustache
@@ -1,3 +1,3 @@
{{#isQueryParam}}{{baseName}} {{^required}}(optional){{/required}}{{#required}}(required){{/required}}
- Query Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isQueryParam}}
\ No newline at end of file
+ Query Parameter — {{description}} {{#defaultValue}}default: {{{defaultValue}}}{{/defaultValue}}
{{/isQueryParam}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache
index 8d9a5755d7b..8ee289b4a6f 100644
--- a/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache
+++ b/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache
@@ -170,4 +170,4 @@ font-style: italic;
color: #FFF;
display: inline-block;
text-decoration: none;
-}
\ No newline at end of file
+}
diff --git a/modules/swagger-codegen/src/main/resources/lumen/app/Http/routes.mustache b/modules/swagger-codegen/src/main/resources/lumen/app/Http/routes.mustache
index 3166f947935..4b904bf2f8e 100644
--- a/modules/swagger-codegen/src/main/resources/lumen/app/Http/routes.mustache
+++ b/modules/swagger-codegen/src/main/resources/lumen/app/Http/routes.mustache
@@ -13,7 +13,7 @@ $app->get('/', function () use ($app) {
* {{httpMethod}} {{nickname}}
* Summary: {{summary}}
* Notes: {{notes}}
-{{#hasProduces}} * Output-Formats: [{{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}]{{/hasProduces}}
+{{#hasProduces}} * Output-Formats: [{{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}]{{/hasProduces}}
*/
$app->{{httpMethod}}('{{path}}', function({{#pathParams}}${{paramName}}, {{/pathParams}}$null = null) use ($app) {
{{#hasHeaderParams}}$headers = Request::header();{{/hasHeaderParams}}
diff --git a/modules/swagger-codegen/src/main/resources/lumen/routes.mustache b/modules/swagger-codegen/src/main/resources/lumen/routes.mustache
index be2fac8d86e..3d91b32c8e4 100644
--- a/modules/swagger-codegen/src/main/resources/lumen/routes.mustache
+++ b/modules/swagger-codegen/src/main/resources/lumen/routes.mustache
@@ -13,7 +13,7 @@ $app->get('/', function () use ($app) {
* {{httpMethod}} {{nickname}}
* Summary: {{summary}}
* Notes: {{notes}}
-{{#hasProduces}} * Output-Formats: [{{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}]{{/hasProduces}}
+{{#hasProduces}} * Output-Formats: [{{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}]{{/hasProduces}}
*/
Route::{{httpMethod}}('{{path}}', function({{#pathParams}}${{paramName}}, {{/pathParams}}null) use ($app) {
{{#hasHeaderParams}}$headers = Request::header();{{/hasHeaderParams}}
diff --git a/modules/swagger-codegen/src/main/resources/nodejs/controller.mustache b/modules/swagger-codegen/src/main/resources/nodejs/controller.mustache
index 0f0c35bc0ee..dc5eaa7952a 100644
--- a/modules/swagger-codegen/src/main/resources/nodejs/controller.mustache
+++ b/modules/swagger-codegen/src/main/resources/nodejs/controller.mustache
@@ -12,4 +12,4 @@ module.exports.{{nickname}} = function {{nickname}} (req, res, next) {
{{classname}}.{{nickname}}(req.swagger.params, res, next);
};
{{/operation}}
-{{/operations}}
\ No newline at end of file
+{{/operations}}
diff --git a/modules/swagger-codegen/src/main/resources/nodejs/swagger.mustache b/modules/swagger-codegen/src/main/resources/nodejs/swagger.mustache
index 51560926bba..7f569370307 100644
--- a/modules/swagger-codegen/src/main/resources/nodejs/swagger.mustache
+++ b/modules/swagger-codegen/src/main/resources/nodejs/swagger.mustache
@@ -1 +1 @@
-{{{swagger-yaml}}}
\ No newline at end of file
+{{{swagger-yaml}}}
diff --git a/modules/swagger-codegen/src/main/resources/objc/api-body.mustache b/modules/swagger-codegen/src/main/resources/objc/api-body.mustache
index 92dbf1d0065..5c09f340b4d 100644
--- a/modules/swagger-codegen/src/main/resources/objc/api-body.mustache
+++ b/modules/swagger-codegen/src/main/resources/objc/api-body.mustache
@@ -126,7 +126,7 @@ NSInteger k{{classname}}MissingParamErrorCode = 234513;
}
{{/headerParams}}
// HTTP header `Accept`
- NSString *acceptHeader = [self.apiClient.sanitizer selectHeaderAccept:@[{{#produces}}@"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/produces}}]];
+ NSString *acceptHeader = [self.apiClient.sanitizer selectHeaderAccept:@[{{#produces}}@"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}}]];
if(acceptHeader.length > 0) {
headerParams[@"Accept"] = acceptHeader;
}
@@ -135,7 +135,7 @@ NSInteger k{{classname}}MissingParamErrorCode = 234513;
NSString *responseContentType = [[acceptHeader componentsSeparatedByString:@", "] firstObject] ?: @"";
// request content type
- NSString *requestContentType = [self.apiClient.sanitizer selectHeaderContentType:@[{{#consumes}}@"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/consumes}}]];
+ NSString *requestContentType = [self.apiClient.sanitizer selectHeaderContentType:@[{{#consumes}}@"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}}]];
// Authentication setting
NSArray *authSettings = @[{{#authMethods}}@"{{name}}"{{#hasMore}}, {{/hasMore}}{{/authMethods}}];
diff --git a/modules/swagger-codegen/src/main/resources/objc/api_doc.mustache b/modules/swagger-codegen/src/main/resources/objc/api_doc.mustache
index 7acaada7e32..44fe31d6404 100644
--- a/modules/swagger-codegen/src/main/resources/objc/api_doc.mustache
+++ b/modules/swagger-codegen/src/main/resources/objc/api_doc.mustache
@@ -76,8 +76,8 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: {{#consumes}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- - **Accept**: {{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
+ - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
+ - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/modules/swagger-codegen/src/main/resources/perl/api.mustache b/modules/swagger-codegen/src/main/resources/perl/api.mustache
index d96a2302a8a..d7ece2d1e65 100644
--- a/modules/swagger-codegen/src/main/resources/perl/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/perl/api.mustache
@@ -100,11 +100,11 @@ sub {{operationId}} {
my $form_params = {};
# 'Accept' and 'Content-Type' header
- my $_header_accept = $self->{api_client}->select_header_accept({{#produces}}'{{mediaType}}'{{#hasMore}}, {{/hasMore}}{{/produces}});
+ my $_header_accept = $self->{api_client}->select_header_accept({{#produces}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/produces}});
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
- $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type({{#consumes}}'{{mediaType}}'{{#hasMore}}, {{/hasMore}}{{/consumes}});
+ $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type({{#consumes}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/consumes}});
{{#queryParams}}
# query params
diff --git a/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache b/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache
index 17dc3903152..585a67c1ac1 100644
--- a/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache
+++ b/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache
@@ -67,8 +67,8 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: {{#consumes}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- - **Accept**: {{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
+ - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
+ - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/modules/swagger-codegen/src/main/resources/php/api.mustache b/modules/swagger-codegen/src/main/resources/php/api.mustache
index 7a9b2afa993..26024ea4789 100644
--- a/modules/swagger-codegen/src/main/resources/php/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/php/api.mustache
@@ -167,11 +167,11 @@ use \{{invokerPackage}}\ObjectSerializer;
$queryParams = array();
$headerParams = array();
$formParams = array();
- $_header_accept = $this->apiClient->selectHeaderAccept(array({{#produces}}'{{mediaType}}'{{#hasMore}}, {{/hasMore}}{{/produces}}));
+ $_header_accept = $this->apiClient->selectHeaderAccept(array({{#produces}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/produces}}));
if (!is_null($_header_accept)) {
$headerParams['Accept'] = $_header_accept;
}
- $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array({{#consumes}}'{{mediaType}}'{{#hasMore}},{{/hasMore}}{{/consumes}}));
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array({{#consumes}}'{{{mediaType}}}'{{#hasMore}},{{/hasMore}}{{/consumes}}));
{{#queryParams}}// query params
{{#collectionFormat}}
diff --git a/modules/swagger-codegen/src/main/resources/php/api_doc.mustache b/modules/swagger-codegen/src/main/resources/php/api_doc.mustache
index fa6033b084a..be2cb895fed 100644
--- a/modules/swagger-codegen/src/main/resources/php/api_doc.mustache
+++ b/modules/swagger-codegen/src/main/resources/php/api_doc.mustache
@@ -63,8 +63,8 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: {{#consumes}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- - **Accept**: {{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
+ - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
+ - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
diff --git a/modules/swagger-codegen/src/main/resources/python/api.mustache b/modules/swagger-codegen/src/main/resources/python/api.mustache
index 94458e3f724..c9c94ad3e3e 100644
--- a/modules/swagger-codegen/src/main/resources/python/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/python/api.mustache
@@ -156,13 +156,13 @@ class {{classname}}(object):
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
- select_header_accept([{{#produces}}'{{mediaType}}'{{#hasMore}}, {{/hasMore}}{{/produces}}])
+ select_header_accept([{{#produces}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/produces}}])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
- select_header_content_type([{{#consumes}}'{{mediaType}}'{{#hasMore}}, {{/hasMore}}{{/consumes}}])
+ select_header_content_type([{{#consumes}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/consumes}}])
# Authentication setting
auth_settings = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}]
diff --git a/modules/swagger-codegen/src/main/resources/python/api_doc.mustache b/modules/swagger-codegen/src/main/resources/python/api_doc.mustache
index 8eb25a87b06..98dec04a393 100644
--- a/modules/swagger-codegen/src/main/resources/python/api_doc.mustache
+++ b/modules/swagger-codegen/src/main/resources/python/api_doc.mustache
@@ -65,8 +65,8 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: {{#consumes}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- - **Accept**: {{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
+ - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
+ - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/modules/swagger-codegen/src/main/resources/python/api_test.mustache b/modules/swagger-codegen/src/main/resources/python/api_test.mustache
index 5f0b0ab6ecb..fe695b8ff51 100644
--- a/modules/swagger-codegen/src/main/resources/python/api_test.mustache
+++ b/modules/swagger-codegen/src/main/resources/python/api_test.mustache
@@ -51,4 +51,4 @@ class {{#operations}}Test{{classname}}(unittest.TestCase):
{{/operations}}
if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
+ unittest.main()
diff --git a/modules/swagger-codegen/src/main/resources/python/model_test.mustache b/modules/swagger-codegen/src/main/resources/python/model_test.mustache
index c00a10a9b51..1e5b4054d57 100644
--- a/modules/swagger-codegen/src/main/resources/python/model_test.mustache
+++ b/modules/swagger-codegen/src/main/resources/python/model_test.mustache
@@ -50,4 +50,4 @@ class Test{{classname}}(unittest.TestCase):
{{/models}}
if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
+ unittest.main()
diff --git a/modules/swagger-codegen/src/main/resources/python/tox.mustache b/modules/swagger-codegen/src/main/resources/python/tox.mustache
index d99517b76b6..ab047ea9e81 100644
--- a/modules/swagger-codegen/src/main/resources/python/tox.mustache
+++ b/modules/swagger-codegen/src/main/resources/python/tox.mustache
@@ -7,4 +7,4 @@ deps=-r{toxinidir}/requirements.txt
commands=
nosetests \
- []
\ No newline at end of file
+ []
diff --git a/modules/swagger-codegen/src/main/resources/qt5cpp/api-header.mustache b/modules/swagger-codegen/src/main/resources/qt5cpp/api-header.mustache
index 4260ba6ff86..186ab3a5324 100644
--- a/modules/swagger-codegen/src/main/resources/qt5cpp/api-header.mustache
+++ b/modules/swagger-codegen/src/main/resources/qt5cpp/api-header.mustache
@@ -31,4 +31,4 @@ signals:
{{/operation}}{{/operations}}
};
}
-#endif
\ No newline at end of file
+#endif
diff --git a/modules/swagger-codegen/src/main/resources/ruby/api.mustache b/modules/swagger-codegen/src/main/resources/ruby/api.mustache
index 20b6d4593e3..5201fd343ea 100644
--- a/modules/swagger-codegen/src/main/resources/ruby/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/ruby/api.mustache
@@ -98,11 +98,11 @@ module {{moduleName}}
header_params = {}
# HTTP header 'Accept' (if needed)
- local_header_accept = [{{#produces}}'{{mediaType}}'{{#hasMore}}, {{/hasMore}}{{/produces}}]
+ local_header_accept = [{{#produces}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/produces}}]
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
- local_header_content_type = [{{#consumes}}'{{mediaType}}'{{#hasMore}}, {{/hasMore}}{{/consumes}}]
+ local_header_content_type = [{{#consumes}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/consumes}}]
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type){{#headerParams}}{{#required}}
header_params[:'{{{baseName}}}'] = {{#collectionFormat}}@api_client.build_collection_param({{{paramName}}}, :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}{{/collectionFormat}}{{/required}}{{/headerParams}}{{#headerParams}}{{^required}}
header_params[:'{{{baseName}}}'] = {{#collectionFormat}}@api_client.build_collection_param(opts[:'{{{paramName}}}'], :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}opts[:'{{{paramName}}}']{{/collectionFormat}} if opts[:'{{{paramName}}}']{{/required}}{{/headerParams}}
diff --git a/modules/swagger-codegen/src/main/resources/ruby/api_doc.mustache b/modules/swagger-codegen/src/main/resources/ruby/api_doc.mustache
index 754e41db5a8..02fd5f7f547 100644
--- a/modules/swagger-codegen/src/main/resources/ruby/api_doc.mustache
+++ b/modules/swagger-codegen/src/main/resources/ruby/api_doc.mustache
@@ -70,8 +70,8 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: {{#consumes}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- - **Accept**: {{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
+ - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
+ - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
diff --git a/modules/swagger-codegen/src/main/resources/scala/api.mustache b/modules/swagger-codegen/src/main/resources/scala/api.mustache
index 6345cd876c8..2600e71cffd 100644
--- a/modules/swagger-codegen/src/main/resources/scala/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/scala/api.mustache
@@ -36,7 +36,7 @@ class {{classname}}(val defBasePath: String = "{{basePath}}",
{{/pathParams}}
- val contentTypes = List({{#consumes}}"{{mediaType}}", {{/consumes}}"application/json")
+ val contentTypes = List({{#consumes}}"{{{mediaType}}}", {{/consumes}}"application/json")
val contentType = contentTypes(0)
// query params
diff --git a/modules/swagger-codegen/src/main/resources/scala/model.mustache b/modules/swagger-codegen/src/main/resources/scala/model.mustache
index a45b71a8f8e..937e4634104 100644
--- a/modules/swagger-codegen/src/main/resources/scala/model.mustache
+++ b/modules/swagger-codegen/src/main/resources/scala/model.mustache
@@ -12,4 +12,4 @@ case class {{classname}} (
{{/description}}{{name}}: {{{datatype}}}{{#hasMore}},{{/hasMore}}{{^hasMore}}){{/hasMore}}
{{/vars}}
{{/model}}
-{{/models}}
\ No newline at end of file
+{{/models}}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/Bootstrap.mustache b/modules/swagger-codegen/src/main/resources/scalatra/Bootstrap.mustache
index 5121079424f..6249a811f85 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/Bootstrap.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/Bootstrap.mustache
@@ -17,4 +17,4 @@ class ScalatraBootstrap extends LifeCycle {
case e: Throwable => e.printStackTrace()
}
}
-}
\ No newline at end of file
+}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/README.mustache b/modules/swagger-codegen/src/main/resources/scalatra/README.mustache
index 327870827fd..f1b4386d2e6 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/README.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/README.mustache
@@ -7,4 +7,4 @@ is an example of building a swagger-enabled scalatra server.
This example uses the [scalatra](http://scalatra.org/) framework. To see how to make this your own, look here:
-[README](https://github.com/swagger-api/swagger-codegen/tree/master/samples/server-generator/scalatra)
\ No newline at end of file
+[README](https://github.com/swagger-api/swagger-codegen/tree/master/samples/server-generator/scalatra)
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/ServletApp.mustache b/modules/swagger-codegen/src/main/resources/scalatra/ServletApp.mustache
index 423b8644712..7ff9edddabe 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/ServletApp.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/ServletApp.mustache
@@ -36,4 +36,4 @@ object ApiSwagger {
"""{{{infoEmail}}}""",
"""{{{licenseInfo}}}""",
"""{{{licenseUrl}}}""")
-}
\ No newline at end of file
+}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/api.mustache b/modules/swagger-codegen/src/main/resources/scalatra/api.mustache
index b6749641e54..ea3cf27935f 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/api.mustache
@@ -50,4 +50,4 @@ class {{classname}} (implicit val swagger: Swagger) extends ScalatraServlet
{{/operation}}
{{/operations}}
-}
\ No newline at end of file
+}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/bodyParam.mustache b/modules/swagger-codegen/src/main/resources/scalatra/bodyParam.mustache
index 07a90aa23cb..2493007fb78 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/bodyParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/bodyParam.mustache
@@ -1 +1 @@
-{{#isBodyParam}}bodyParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isBodyParam}}
\ No newline at end of file
+{{#isBodyParam}}bodyParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isBodyParam}}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/formParam.mustache b/modules/swagger-codegen/src/main/resources/scalatra/formParam.mustache
index 1afcf12ccc6..220275b8ebe 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/formParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/formParam.mustache
@@ -1 +1 @@
-{{#isFormParam}}formParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isFormParam}}
\ No newline at end of file
+{{#isFormParam}}formParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isFormParam}}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/headerParam.mustache b/modules/swagger-codegen/src/main/resources/scalatra/headerParam.mustache
index 798bb0fe6d5..937c1652870 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/headerParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/headerParam.mustache
@@ -1 +1 @@
-{{#isHeaderParam}}headerParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isHeaderParam}}
\ No newline at end of file
+{{#isHeaderParam}}headerParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isHeaderParam}}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/headerParamOperation.mustache b/modules/swagger-codegen/src/main/resources/scalatra/headerParamOperation.mustache
index 7f8f5286392..2527bb711b1 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/headerParamOperation.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/headerParamOperation.mustache
@@ -1,3 +1,3 @@
{{#isHeaderParam}}
val {{paramName}} = request.getHeader("{{paramName}}")
- {{/isHeaderParam}}
\ No newline at end of file
+ {{/isHeaderParam}}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/pathParam.mustache b/modules/swagger-codegen/src/main/resources/scalatra/pathParam.mustache
index ae72aa8ec74..960a0733015 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/pathParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/pathParam.mustache
@@ -1 +1 @@
-{{#isPathParam}}pathParam[{{dataType}}]("{{paramName}}").description(""){{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isPathParam}}
\ No newline at end of file
+{{#isPathParam}}pathParam[{{dataType}}]("{{paramName}}").description(""){{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isPathParam}}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/queryParam.mustache b/modules/swagger-codegen/src/main/resources/scalatra/queryParam.mustache
index 79af702d0f0..76a79b988fd 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/queryParam.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/queryParam.mustache
@@ -1 +1 @@
-{{#isQueryParam}}queryParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isQueryParam}}
\ No newline at end of file
+{{#isQueryParam}}queryParam[{{dataType}}]("{{paramName}}").description(""){{^required}}.optional{{/required}}{{#defaultValue}}.defaultValue({{{defaultValue}}}){{/defaultValue}}{{/isQueryParam}}
diff --git a/modules/swagger-codegen/src/main/resources/scalatra/queryParamOperation.mustache b/modules/swagger-codegen/src/main/resources/scalatra/queryParamOperation.mustache
index 832bbed2030..910367599d1 100644
--- a/modules/swagger-codegen/src/main/resources/scalatra/queryParamOperation.mustache
+++ b/modules/swagger-codegen/src/main/resources/scalatra/queryParamOperation.mustache
@@ -10,4 +10,4 @@
List()
{{/collectionFormat}}
{{^collectionFormat}}val {{paramName}} = params.getAs[{{dataType}}]("{{paramName}}"){{/collectionFormat}}
- {{/isQueryParam}}
\ No newline at end of file
+ {{/isQueryParam}}
diff --git a/modules/swagger-codegen/src/main/resources/sinatra/swagger.mustache b/modules/swagger-codegen/src/main/resources/sinatra/swagger.mustache
index 51560926bba..7f569370307 100644
--- a/modules/swagger-codegen/src/main/resources/sinatra/swagger.mustache
+++ b/modules/swagger-codegen/src/main/resources/sinatra/swagger.mustache
@@ -1 +1 @@
-{{{swagger-yaml}}}
\ No newline at end of file
+{{{swagger-yaml}}}
diff --git a/modules/swagger-codegen/src/main/resources/slim/index.mustache b/modules/swagger-codegen/src/main/resources/slim/index.mustache
index 4fdd77681c3..383094821dd 100644
--- a/modules/swagger-codegen/src/main/resources/slim/index.mustache
+++ b/modules/swagger-codegen/src/main/resources/slim/index.mustache
@@ -13,7 +13,7 @@ $app = new Slim\App();
* {{httpMethod}} {{nickname}}
* Summary: {{summary}}
* Notes: {{notes}}
-{{#hasProduces}} * Output-Formats: [{{#produces}}{{mediaType}}{{#hasMore}}, {{/hasMore}}{{/produces}}]{{/hasProduces}}
+{{#hasProduces}} * Output-Formats: [{{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}]{{/hasProduces}}
*/
$app->{{httpMethod}}('{{path}}', function($request, $response, $args) {
{{#hasHeaderParams}}$headers = $request->getHeaders();{{/hasHeaderParams}}
diff --git a/modules/swagger-codegen/src/main/resources/slim/model.mustache b/modules/swagger-codegen/src/main/resources/slim/model.mustache
index 48f586793ee..2f4f5b3d8d6 100644
--- a/modules/swagger-codegen/src/main/resources/slim/model.mustache
+++ b/modules/swagger-codegen/src/main/resources/slim/model.mustache
@@ -12,4 +12,4 @@ class {{classname}} {
private ${{name}};
{{/vars}}
}
-{{/model}}{{/models}}
\ No newline at end of file
+{{/model}}{{/models}}
diff --git a/modules/swagger-codegen/src/main/resources/swagger-static/index.mustache b/modules/swagger-codegen/src/main/resources/swagger-static/index.mustache
index 3cfbea753c8..29951808c73 100644
--- a/modules/swagger-codegen/src/main/resources/swagger-static/index.mustache
+++ b/modules/swagger-codegen/src/main/resources/swagger-static/index.mustache
@@ -55,4 +55,4 @@