File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
modules/swagger-codegen/src/main/resources/cpprest Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ public:
36
36
void setConfiguration(std::shared_ptr< ApiConfiguration> configuration);
37
37
38
38
static utility::string_t parameterToString(utility::string_t value);
39
+ static utility::string_t parameterToString(bool value);
39
40
static utility::string_t parameterToString(int32_t value);
40
41
static utility::string_t parameterToString(int64_t value);
41
42
static utility::string_t parameterToString(float value);
Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ utility::string_t ApiClient::parameterToString(utility::string_t value)
31
31
{
32
32
return value;
33
33
}
34
+
35
+ utility::string_t ApiClient::parameterToString(bool value)
36
+ {
37
+ std::stringstream valueAsStringStream;
38
+ valueAsStringStream << (value ? " true" : " false" );
39
+ return utility::conversions::to_string_t(valueAsStringStream.str());
40
+ }
41
+
34
42
utility::string_t ApiClient::parameterToString(int64_t value)
35
43
{
36
44
std::stringstream valueAsStringStream;
You can’t perform that action at this time.
0 commit comments