mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-28 19:50:49 +00:00
[cpprest-sdk] avoid newlines when no model import
This commit is contained in:
parent
19070bb24c
commit
6392b7bb84
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user