forked from loafle/openapi-generator-original
Cleanup mandatoryParam variable in mustache and Codegen, replaced using
-last
This commit is contained in:
@@ -17,9 +17,6 @@ public class CodegenModel {
|
||||
// list of all required parameters
|
||||
public Set<String> mandatory = new HashSet<String>();
|
||||
|
||||
// TODO: temporary solution to get a delimited list of default constructor parameters, should be replaced if there is a better way of injecting the mandatory parameters into the mustache templates
|
||||
public String mandatoryParams;
|
||||
|
||||
public Set<String> imports = new HashSet<String>();
|
||||
public Boolean hasVars, emptyVars, hasMoreModels, hasEnums;
|
||||
public ExternalDocs externalDocs;
|
||||
|
||||
@@ -1883,8 +1883,7 @@ public class DefaultCodegen {
|
||||
}
|
||||
|
||||
m.mandatory = mandatory;
|
||||
m.mandatoryParams = StringUtils.join(mandatory, ", ");
|
||||
|
||||
|
||||
} else {
|
||||
m.emptyVars = true;
|
||||
m.hasVars = false;
|
||||
|
||||
Reference in New Issue
Block a user