mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-24 11:39:25 +00:00
Fix issue deserializing to nullptr (#3572)
* Fix issue deserializing to nullptr * Update codegen files
This commit is contained in:
@@ -359,7 +359,10 @@ public class CppRestSdkClientCodegen extends AbstractCppCodegen {
|
||||
return "new " + toModelName(ModelUtils.getSimpleRef(p.get$ref())) + "()";
|
||||
} else if (ModelUtils.isStringSchema(p)) {
|
||||
return "utility::conversions::to_string_t(\"\")";
|
||||
} else if (ModelUtils.isFreeFormObject(p)) {
|
||||
return "new Object()";
|
||||
}
|
||||
|
||||
return "nullptr";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user