mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-23 22:59:09 +00:00
Fix 3886 ishttpcontent not set (#3888)
* Fix issue deserializing to nullptr * Update codegen files * Fix error matching on DataType's value * Fix return type. Should be shared pointer
This commit is contained in:
@@ -242,7 +242,7 @@ public class CppRestSdkClientCodegen extends AbstractCppCodegen {
|
||||
if (response != null) {
|
||||
CodegenProperty cm = fromProperty("response", response);
|
||||
op.vendorExtensions.put("x-codegen-response", cm);
|
||||
if ("HttpContent".equals(cm.dataType)) {
|
||||
if ("std::shared_ptr<HttpContent>".equals(cm.dataType)) {
|
||||
op.vendorExtensions.put("x-codegen-response-ishttpcontent", true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user