[cpp pistache] use model namespace only on Model import (#733)

Don't use model namespaces when not imported
This commit is contained in:
sunn
2018-08-07 15:19:56 +02:00
committed by GitHub
parent 629608c573
commit baf16cf834
5 changed files with 14 additions and 4 deletions

View File

@@ -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;