mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-07 20:36:10 +00:00
[cpp rest-sdk] Constness (#1295)
* Improve method signatures to use const when the value won't change * Update PetStore * Change setters for non-primitive types to receive const reference parameters * Update PetStore
This commit is contained in:
committed by
sunn
parent
107467497c
commit
d80f3a6197
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.1-SNAPSHOT.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
virtual void validate() = 0;
|
||||
|
||||
virtual web::json::value toJson() const = 0;
|
||||
virtual void fromJson(web::json::value& json) = 0;
|
||||
virtual void fromJson(const web::json::value& json) = 0;
|
||||
|
||||
virtual void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const = 0;
|
||||
virtual void fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) = 0;
|
||||
@@ -57,14 +57,14 @@ public:
|
||||
template<class T>
|
||||
static web::json::value toJson(const std::vector<T>& value);
|
||||
|
||||
static int64_t int64_tFromJson(web::json::value& val);
|
||||
static int32_t int32_tFromJson(web::json::value& val);
|
||||
static float floatFromJson(web::json::value& val);
|
||||
static utility::string_t stringFromJson(web::json::value& val);
|
||||
static utility::datetime dateFromJson(web::json::value& val);
|
||||
static double doubleFromJson(web::json::value& val);
|
||||
static bool boolFromJson(web::json::value& val);
|
||||
static std::shared_ptr<HttpContent> fileFromJson(web::json::value& val);
|
||||
static int64_t int64_tFromJson(const web::json::value& val);
|
||||
static int32_t int32_tFromJson(const web::json::value& val);
|
||||
static float floatFromJson(const web::json::value& val);
|
||||
static utility::string_t stringFromJson(const web::json::value& val);
|
||||
static utility::datetime dateFromJson(const web::json::value& val);
|
||||
static double doubleFromJson(const web::json::value& val);
|
||||
static bool boolFromJson(const web::json::value& val);
|
||||
static std::shared_ptr<HttpContent> fileFromJson(const web::json::value& val);
|
||||
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const utility::string_t& value, const utility::string_t& contentType = utility::conversions::to_string_t(""));
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const utility::datetime& value, const utility::string_t& contentType = utility::conversions::to_string_t(""));
|
||||
|
||||
Reference in New Issue
Block a user