[cpprest-sdk] avoid newlines when no model import

This commit is contained in:
Amin Yahyaabadi 2025-05-07 21:54:45 -07:00
parent 19070bb24c
commit 6392b7bb84

View File

@ -13,7 +13,9 @@
#include "{{packageName}}/ApiException.h" #include "{{packageName}}/ApiException.h"
#include "{{packageName}}/IHttpBody.h" #include "{{packageName}}/IHttpBody.h"
#include "{{packageName}}/HttpContent.h" #include "{{packageName}}/HttpContent.h"
{{^hasModelImport}}#include "{{packageName}}/ModelBase.h"{{/hasModelImport}} {{^hasModelImport}}
#include "{{packageName}}/ModelBase.h"
{{/hasModelImport}}
#if defined (_WIN32) || defined (_WIN64) #if defined (_WIN32) || defined (_WIN64)
#undef U #undef U
#endif #endif
@ -52,7 +54,9 @@ public:
static utility::string_t parameterToString(double value); static utility::string_t parameterToString(double value);
static utility::string_t parameterToString(const utility::datetime &value); static utility::string_t parameterToString(const utility::datetime &value);
static utility::string_t parameterToString(bool 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<class T> template<class T>
static utility::string_t parameterToString(const std::vector<T>& value); static utility::string_t parameterToString(const std::vector<T>& value);
template<class T> template<class T>