mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-18 21:19:17 +00:00
[cpp pistache] use model namespace only on Model import (#733)
Don't use model namespaces when not imported
This commit is contained in:
@@ -246,6 +246,12 @@ public class CppPistacheServerCodegen extends AbstractCppCodegen {
|
||||
}
|
||||
op.vendorExtensions.put("x-codegen-pistache-consumesJson", consumeJson);
|
||||
op.vendorExtensions.put("x-codegen-pistache-isParsingSupported", isParsingSupported);
|
||||
for(String hdr : op.imports) {
|
||||
if(importMapping.containsKey(hdr)) {
|
||||
continue;
|
||||
}
|
||||
additionalProperties.put("hasModelImport", true);
|
||||
}
|
||||
}
|
||||
|
||||
return objs;
|
||||
|
||||
Reference in New Issue
Block a user