Merge pull request #912 from gabrielar/develop_2.0-pull-requests/add-pathPrefix-key-to-operations

Add a `pathPrefix` key to the `operations` key
This commit is contained in:
wing328 2015-07-15 10:26:13 +08:00
commit 157b07e552

View File

@ -413,6 +413,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>();