mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-05 15:10:49 +00:00
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:
commit
157b07e552
@ -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>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user