Fix string types for cpprestsdk client generator (#1676)

* Fix string types for cpprestsdk client generator

* Regenerate the samples for restsdk-client
This commit is contained in:
rhard 2019-02-18 15:34:51 +01:00 committed by William Cheng
parent a3566cd34f
commit 70180e074c
38 changed files with 43 additions and 43 deletions

View File

@ -193,7 +193,7 @@ pplx::task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/r
{{#bodyParam}}
std::shared_ptr<MultipartFormData> localVarMultipart(new MultipartFormData);
{{#isPrimitiveType}}
localVarMultipart->add(ModelBase::toHttpContent("{{paramName}}", {{paramName}}));
localVarMultipart->add(ModelBase::toHttpContent(utility::conversions::to_string_t("{{paramName}}"), {{paramName}}));
{{/isPrimitiveType}}
{{^isPrimitiveType}}
{{#isListContainer}}

View File

@ -10,7 +10,7 @@
template <typename T>
utility::string_t toString(const T value)
{
std::ostringstream out;
utility::ostringstream_t out;
out << std::setprecision(std::numeric_limits<T>::digits10) << std::fixed << value;
return out.str();
}

View File

@ -1 +1 @@
3.3.0-SNAPSHOT
3.3.4

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
@ -20,7 +20,7 @@
template <typename T>
utility::string_t toString(const T value)
{
std::ostringstream out;
utility::ostringstream_t out;
out << std::setprecision(std::numeric_limits<T>::digits10) << std::fixed << value;
return out.str();
}

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
@ -25,7 +25,7 @@
#include "HttpContent.h"
#include "Pet.h"
#include <cpprest/details/basic_types.h>
#include "../ModelBase.h"
#include <boost/optional.hpp>
@ -63,7 +63,7 @@ public:
///
/// </remarks>
/// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param>
/// <param name="apiKey"> (optional, default to utility::conversions::to_string_t(&quot;&quot;))</param>
pplx::task<void> deletePet(
int64_t petId,
boost::optional<utility::string_t> apiKey

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
@ -24,7 +24,7 @@
#include "Order.h"
#include <map>
#include <cpprest/details/basic_types.h>
#include "../ModelBase.h"
#include <boost/optional.hpp>

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
@ -24,7 +24,7 @@
#include "User.h"
#include <vector>
#include <cpprest/details/basic_types.h>
#include "../ModelBase.h"
#include <boost/optional.hpp>

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

View File

@ -4,7 +4,7 @@
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/