mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
addressed import mappings
This commit is contained in:
parent
5a70550a37
commit
7c998a2d67
@ -19,15 +19,16 @@ public class ScalatraServerCodegen extends DefaultCodegen implements CodegenConf
|
|||||||
outputFolder = "generated-code/scalatra";
|
outputFolder = "generated-code/scalatra";
|
||||||
modelTemplateFiles.put("model.mustache", ".scala");
|
modelTemplateFiles.put("model.mustache", ".scala");
|
||||||
apiTemplateFiles.put("api.mustache", ".scala");
|
apiTemplateFiles.put("api.mustache", ".scala");
|
||||||
templateDir = "src/main/resources/scalatra";
|
templateDir = "scalatra";
|
||||||
apiPackage = "com.wordnik.client.api";
|
apiPackage = "com.wordnik.client.api";
|
||||||
modelPackage = "com.wordnik.client.model";
|
modelPackage = "com.wordnik.client.model";
|
||||||
|
|
||||||
defaultIncludes = new HashSet<String>(
|
defaultIncludes = new HashSet<String>(
|
||||||
Arrays.asList("double",
|
Arrays.asList("double",
|
||||||
"int",
|
"Int",
|
||||||
"long",
|
"Long",
|
||||||
"short",
|
"Float",
|
||||||
|
"Double",
|
||||||
"char",
|
"char",
|
||||||
"float",
|
"float",
|
||||||
"String",
|
"String",
|
||||||
@ -42,6 +43,9 @@ public class ScalatraServerCodegen extends DefaultCodegen implements CodegenConf
|
|||||||
"Map")
|
"Map")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
typeMapping.put("integer", "Int");
|
||||||
|
typeMapping.put("long", "Long");
|
||||||
|
|
||||||
additionalProperties.put("appName", "Swagger Sample");
|
additionalProperties.put("appName", "Swagger Sample");
|
||||||
additionalProperties.put("appName", "Swagger Sample");
|
additionalProperties.put("appName", "Swagger Sample");
|
||||||
additionalProperties.put("appDescription", "A sample swagger server");
|
additionalProperties.put("appDescription", "A sample swagger server");
|
||||||
|
Loading…
Reference in New Issue
Block a user