addressed import mappings

This commit is contained in:
Tony Tam 2014-10-10 22:07:08 -07:00
parent 5a70550a37
commit 7c998a2d67

View File

@ -19,15 +19,16 @@ public class ScalatraServerCodegen extends DefaultCodegen implements CodegenConf
outputFolder = "generated-code/scalatra";
modelTemplateFiles.put("model.mustache", ".scala");
apiTemplateFiles.put("api.mustache", ".scala");
templateDir = "src/main/resources/scalatra";
templateDir = "scalatra";
apiPackage = "com.wordnik.client.api";
modelPackage = "com.wordnik.client.model";
defaultIncludes = new HashSet<String>(
Arrays.asList("double",
"int",
"long",
"short",
"Int",
"Long",
"Float",
"Double",
"char",
"float",
"String",
@ -42,6 +43,9 @@ public class ScalatraServerCodegen extends DefaultCodegen implements CodegenConf
"Map")
);
typeMapping.put("integer", "Int");
typeMapping.put("long", "Long");
additionalProperties.put("appName", "Swagger Sample");
additionalProperties.put("appName", "Swagger Sample");
additionalProperties.put("appDescription", "A sample swagger server");