Add a pathPrefix key to the operations key

This commit is contained in:
Gabriel Radu 2015-06-24 03:07:22 +01:00
parent 11e56f5c9c
commit 1b1f860c82

View File

@ -393,6 +393,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
Map<String, Object> operations = new HashMap<String, Object>(); Map<String, Object> operations = new HashMap<String, Object>();
Map<String, Object> objs = new HashMap<String, Object>(); Map<String, Object> objs = new HashMap<String, Object>();
objs.put("classname", config.toApiName(tag)); objs.put("classname", config.toApiName(tag));
objs.put("pathPrefix", config.toApiVarName(tag));
// check for operationId uniqueness // check for operationId uniqueness
Set<String> opIds = new HashSet<String>(); Set<String> opIds = new HashSet<String>();