[C++][Restbed] Fix default value for Restbed (#1186)

* Start working on fixing default value in Restbed Server Api Template

* fix default value in DefaultCodegen

* Revert "fix default value in DefaultCodegen"

This reverts commit ce690069d2.

* fix default value in cpprest

* update cpp restbed samples
This commit is contained in:
stkrwork
2018-10-07 19:54:06 +02:00
committed by William Cheng
parent e85c527f33
commit 52a112d90f
57 changed files with 123 additions and 80 deletions

View File

@@ -25,15 +25,19 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.logging.Logger;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.openapitools.codegen.*; import org.openapitools.codegen.*;
import org.openapitools.codegen.utils.ModelUtils; import org.openapitools.codegen.utils.ModelUtils;
import org.slf4j.LoggerFactory;
import io.swagger.v3.oas.models.media.*; import io.swagger.v3.oas.models.media.*;
public class CppRestbedServerCodegen extends AbstractCppCodegen { public class CppRestbedServerCodegen extends AbstractCppCodegen {
private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(CppRestbedServerCodegen.class);
public static final String DECLSPEC = "declspec"; public static final String DECLSPEC = "declspec";
public static final String DEFAULT_INCLUDE = "defaultInclude"; public static final String DEFAULT_INCLUDE = "defaultInclude";
@@ -287,25 +291,63 @@ public class CppRestbedServerCodegen extends AbstractCppCodegen {
@Override @Override
public String toDefaultValue(Schema p) { public String toDefaultValue(Schema p) {
if (ModelUtils.isStringSchema(p)) { if (ModelUtils.isStringSchema(p)) {
return "\"\""; if (p.getDefault() != null) {
return "\"" + p.getDefault().toString() + "\"";
} else {
return "\"\"";
}
} else if (ModelUtils.isBooleanSchema(p)) { } else if (ModelUtils.isBooleanSchema(p)) {
return "false"; if (p.getDefault() != null) {
return p.getDefault().toString();
} else {
return "false";
}
} else if (ModelUtils.isDateSchema(p)) { } else if (ModelUtils.isDateSchema(p)) {
return "\"\""; if (p.getDefault() != null) {
return "\"" + p.getDefault().toString() + "\"";
} else {
return "\"\"";
}
} else if (ModelUtils.isDateTimeSchema(p)) { } else if (ModelUtils.isDateTimeSchema(p)) {
return "\"\""; if (p.getDefault() != null) {
return "\"" + p.getDefault().toString() + "\"";
} else {
return "\"\"";
}
} else if (ModelUtils.isNumberSchema(p)) { } else if (ModelUtils.isNumberSchema(p)) {
if (ModelUtils.isFloatSchema(p)) { if (ModelUtils.isFloatSchema(p)) { // float
return "0.0f"; if (p.getDefault() != null) {
return p.getDefault().toString() + "f";
} else {
return "0.0f";
}
} else { // double
if (p.getDefault() != null) {
return p.getDefault().toString();
} else {
return "0.0";
}
} }
return "0.0";
} else if (ModelUtils.isIntegerSchema(p)) { } else if (ModelUtils.isIntegerSchema(p)) {
if (ModelUtils.isLongSchema(p)) { if (ModelUtils.isLongSchema(p)) { // long
return "0L"; if (p.getDefault() != null) {
return p.getDefault().toString() + "L";
} else {
return "0L";
}
} else { // integer
if (p.getDefault() != null) {
return p.getDefault().toString();
} else {
return "0";
}
} }
return "0";
} else if (ModelUtils.isByteArraySchema(p)) { } else if (ModelUtils.isByteArraySchema(p)) {
return "\"\""; if (p.getDefault() != null) {
return "\"" + p.getDefault().toString() + "\"";
} else {
return "\"\"";
}
} else if (ModelUtils.isMapSchema(p)) { } else if (ModelUtils.isMapSchema(p)) {
String inner = getSchemaType(ModelUtils.getAdditionalProperties(p)); String inner = getSchemaType(ModelUtils.getAdditionalProperties(p));
return "std::map<std::string, " + inner + ">()"; return "std::map<std::string, " + inner + ">()";
@@ -319,6 +361,7 @@ public class CppRestbedServerCodegen extends AbstractCppCodegen {
} else if (!StringUtils.isEmpty(p.get$ref())) { } else if (!StringUtils.isEmpty(p.get$ref())) {
return "new " + toModelName(ModelUtils.getSimpleRef(p.get$ref())) + "()"; return "new " + toModelName(ModelUtils.getSimpleRef(p.get$ref())) + "()";
} }
return "nullptr"; return "nullptr";
} }

View File

@@ -75,7 +75,7 @@ void {{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource::{{httpMet
// Getting the path params // Getting the path params
{{#pathParams}} {{#pathParams}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
const {{{dataType}}} {{{paramName}}} = request->get_path_parameter("{{paramName}}", {{#isString}}""{{/isString}}{{#isInteger}}0{{/isInteger}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0f{{/isFloat}}{{#isDouble}}0.0{{/isDouble}}); const {{{dataType}}} {{{paramName}}} = request->get_path_parameter("{{paramName}}", {{{defaultValue}}});
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{/pathParams}} {{/pathParams}}
{{/hasPathParams}} {{/hasPathParams}}
@@ -84,7 +84,7 @@ void {{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource::{{httpMet
// Getting the query params // Getting the query params
{{#queryParams}} {{#queryParams}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
const {{{dataType}}} {{{paramName}}} = request->get_query_parameter("{{paramName}}", {{#isString}}""{{/isString}}{{#isInteger}}0{{/isInteger}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0f{{/isFloat}}{{#isDouble}}0.0{{/isDouble}}); const {{{dataType}}} {{{paramName}}} = request->get_query_parameter("{{paramName}}", {{{defaultValue}}});
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{/queryParams}} {{/queryParams}}
{{/hasQueryParams}} {{/hasQueryParams}}
@@ -93,7 +93,7 @@ void {{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource::{{httpMet
// Getting the headers // Getting the headers
{{#headerParams}} {{#headerParams}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
const {{{dataType}}} {{{paramName}}} = request->get_header("{{paramName}}", {{#isString}}""{{/isString}}{{#isInteger}}0{{/isInteger}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0f{{/isFloat}}{{#isDouble}}0.0{{/isDouble}}); const {{{dataType}}} {{{paramName}}} = request->get_header("{{paramName}}", {{{defaultValue}}});
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{/headerParams}} {{/headerParams}}
{{/hasHeaderParams}} {{/hasHeaderParams}}
@@ -140,7 +140,7 @@ void {{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource::{{httpMet
// Getting the path params // Getting the path params
{{#pathParams}} {{#pathParams}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
const {{dataType}} {{paramName}} = request->get_path_parameter("{{paramName}}", {{#isString}}""{{/isString}}{{#isInteger}}0{{/isInteger}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0f{{/isFloat}}{{#isDouble}}0.0{{/isDouble}}); const {{{dataType}}} {{{paramName}}} = request->get_path_parameter("{{paramName}}", {{{defaultValue}}});
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{/pathParams}} {{/pathParams}}
{{/hasPathParams}} {{/hasPathParams}}
@@ -149,16 +149,16 @@ void {{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource::{{httpMet
// Getting the query params // Getting the query params
{{#queryParams}} {{#queryParams}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
const {{dataType}} {{paramName}} = request->get_query_parameter("{{paramName}}", {{#isString}}""{{/isString}}{{#isInteger}}0{{/isInteger}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0f{{/isFloat}}{{#isDouble}}0.0{{/isDouble}}); const {{{dataType}}} {{{paramName}}} = request->get_query_parameter("{{paramName}}", {{{defaultValue}}});
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{/queryParams}} {{/queryParams}}
{{/hasQueryParams}} {{/hasQueryParams}}
{{#hasHeaderParams}} {{#hasHeaderParams}}
// Getting the headers // Getting the headers
{{#headerParams}} {{#headerParams}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
const {{dataType}} {{paramName}} = request->get_header("{{paramName}}", {{#isString}}""{{/isString}}{{#isInteger}}0{{/isInteger}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0f{{/isFloat}}{{#isDouble}}0.0{{/isDouble}}); const {{{dataType}}} {{{paramName}}} = request->get_header("{{paramName}}", {{{defaultValue}}});
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{/headerParams}} {{/headerParams}}
{{/hasHeaderParams}} {{/hasHeaderParams}}

View File

@@ -1 +1 @@
3.3.0-SNAPSHOT 3.3.1-SNAPSHOT

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
@@ -62,7 +62,7 @@ public:
/// ///
/// </remarks> /// </remarks>
/// <param name="petId">Pet id to delete</param> /// <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( pplx::task<void> deletePet(
int64_t petId, int64_t petId,
boost::optional<utility::string_t> apiKey boost::optional<utility::string_t> apiKey

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -4,7 +4,7 @@
* *
* OpenAPI spec version: 1.0.0 * 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.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */

View File

@@ -1 +1 @@
3.2.1-SNAPSHOT 3.3.1-SNAPSHOT

View File

@@ -5,7 +5,7 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI-Generator 3.2.1-SNAPSHOT. * NOTE: This class is auto generated by OpenAPI-Generator 3.3.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
@@ -118,7 +118,7 @@ void PetApiPetResource::PUT_method_handler(const std::shared_ptr<restbed::Sessio
std::string requestBody = restbed::String::format("%.*s\n", ( int ) body.size( ), body.data( )); std::string requestBody = restbed::String::format("%.*s\n", ( int ) body.size( ), body.data( ));
// Change the value of this variable to the appropriate response before sending the response // Change the value of this variable to the appropriate response before sending the response
int status_code = 200; int status_code = 200;
@@ -194,7 +194,7 @@ void PetApiPetPetIdResource::GET_method_handler(const std::shared_ptr<restbed::S
// Getting the path params // Getting the path params
const int64_t petId = request->get_path_parameter("petId", 0L); const int64_t petId = request->get_path_parameter("petId", 0L);
// Change the value of this variable to the appropriate response before sending the response // Change the value of this variable to the appropriate response before sending the response
int status_code = 200; int status_code = 200;
@@ -225,7 +225,7 @@ void PetApiPetPetIdResource::POST_method_handler(const std::shared_ptr<restbed::
// Getting the path params // Getting the path params
const int64_t petId = request->get_path_parameter("petId", 0L); const int64_t petId = request->get_path_parameter("petId", 0L);
// Change the value of this variable to the appropriate response before sending the response // Change the value of this variable to the appropriate response before sending the response
int status_code = 200; int status_code = 200;

View File

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

View File

@@ -5,7 +5,7 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI-Generator 3.2.1-SNAPSHOT. * NOTE: This class is auto generated by OpenAPI-Generator 3.3.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
@@ -100,7 +100,7 @@ void StoreApiStoreOrderOrderIdResource::GET_method_handler(const std::shared_ptr
// Getting the path params // Getting the path params
const int64_t orderId = request->get_path_parameter("orderId", 0L); const int64_t orderId = request->get_path_parameter("orderId", 0L);
// Change the value of this variable to the appropriate response before sending the response // Change the value of this variable to the appropriate response before sending the response
int status_code = 200; int status_code = 200;

View File

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

View File

@@ -5,7 +5,7 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI-Generator 3.2.1-SNAPSHOT. * NOTE: This class is auto generated by OpenAPI-Generator 3.3.1-SNAPSHOT.
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
@@ -253,7 +253,7 @@ void UserApiUserUsernameResource::GET_method_handler(const std::shared_ptr<restb
// Getting the path params // Getting the path params
const std::string username = request->get_path_parameter("username", ""); const std::string username = request->get_path_parameter("username", "");
// Change the value of this variable to the appropriate response before sending the response // Change the value of this variable to the appropriate response before sending the response
int status_code = 200; int status_code = 200;
@@ -292,7 +292,7 @@ void UserApiUserUsernameResource::PUT_method_handler(const std::shared_ptr<restb
// Getting the path params // Getting the path params
const std::string username = request->get_path_parameter("username", ""); const std::string username = request->get_path_parameter("username", "");
// Change the value of this variable to the appropriate response before sending the response // Change the value of this variable to the appropriate response before sending the response
int status_code = 200; int status_code = 200;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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