fixes for name extractor
@@ -128,13 +128,12 @@ public class TypeNameExtractor {
typeNameProviders.getPluginFor(context.getDocumentationType(), new DefaultTypeNameProvider());
String modelName = selected.nameFor(((ResolvedType)context.getType()).getErasedType());
LOG.info("Generated unique model named: {}, with model id: {}", modelName, context.hashCode());
- if (isMapType(asResolved(context.getType()))) {
- return modelName;
- }
+ if (!isMapType(asResolved(context.getType()))) {
String typePostfix = context.typePostfix();
if (!typePostfix.equals("")) {
return String.format("%s_%s", modelName, context.typePostfix());
}
+ }
return modelName;
}
}
