From 6392b7bb8477f27f7cf3eaae32a5739a5f38d4d1 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 7 May 2025 21:54:45 -0700 Subject: [PATCH] [cpprest-sdk] avoid newlines when no model import --- .../cpp-rest-sdk-client/apiclient-header.mustache | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/apiclient-header.mustache b/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/apiclient-header.mustache index f1ccd7a2745..73eee1dc322 100644 --- a/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/apiclient-header.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/apiclient-header.mustache @@ -13,7 +13,9 @@ #include "{{packageName}}/ApiException.h" #include "{{packageName}}/IHttpBody.h" #include "{{packageName}}/HttpContent.h" -{{^hasModelImport}}#include "{{packageName}}/ModelBase.h"{{/hasModelImport}} +{{^hasModelImport}} +#include "{{packageName}}/ModelBase.h" +{{/hasModelImport}} #if defined (_WIN32) || defined (_WIN64) #undef U #endif @@ -52,7 +54,9 @@ public: static utility::string_t parameterToString(double value); static utility::string_t parameterToString(const utility::datetime &value); static utility::string_t parameterToString(bool value); - {{^hasModelImport}}static utility::string_t parameterToString(const ModelBase& value);{{/hasModelImport}} + {{^hasModelImport}} + static utility::string_t parameterToString(const ModelBase& value); + {{/hasModelImport}} template static utility::string_t parameterToString(const std::vector& value); template