Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Made the . in the service file name part of the config setting
  • Loading branch information
tomvangreen committed Jun 21, 2018
commit f3d23db98bd08195f11c7c8309438ccaa3d89fdd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode
protected String npmVersion = "1.0.0";
protected String npmRepository = null;
protected String serviceSuffix = "Service";
protected String serviceFileSuffix = "service";
protected String serviceFileSuffix = ".service";

private boolean taggedUnions = false;

Expand Down Expand Up @@ -437,7 +437,7 @@ public String toApiFilename(String name) {
if (name.length() == 0) {
return "default.service";
}
return camelize(name, true) + "." + serviceFileSuffix;
return camelize(name, true) + serviceFileSuffix;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class TypeScriptAngularClientOptionsProvider implements OptionsProvider {
public static final String NG_VERSION = "2";
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
public static String SERVICE_SUFFIX = "Service";
public static String SERVICE_FILE_SUFFIX = "service";
public static String SERVICE_FILE_SUFFIX = ".service";

@Override
public String getLanguage() {
Expand Down