forked from loafle/openapi-generator-original
Renaming request dispatcher to Nancy specific Module.
This commit is contained in:
@@ -126,6 +126,14 @@ public class NancyFXServerCodegen extends AbstractCSharpCodegen {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toApiName(String name) {
|
||||
if (name.length() == 0) {
|
||||
return "DefaultModule";
|
||||
}
|
||||
return initialCaps(name) + "Module";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toEnumName(CodegenProperty property) {
|
||||
return sanitizeName(camelize(property.name)) ;
|
||||
|
||||
Reference in New Issue
Block a user