From 1b4db2579457945b045b258525f07eb2580eaf24 Mon Sep 17 00:00:00 2001 From: Alexej Haak Date: Sun, 26 Feb 2017 18:52:01 +0100 Subject: [PATCH] switch routername to avoid collisions --- codegen/src/main/scala/app/SwaggerCodegen.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/src/main/scala/app/SwaggerCodegen.scala b/codegen/src/main/scala/app/SwaggerCodegen.scala index fb24069..46575c4 100644 --- a/codegen/src/main/scala/app/SwaggerCodegen.scala +++ b/codegen/src/main/scala/app/SwaggerCodegen.scala @@ -67,7 +67,7 @@ object SwaggerCodegen extends App { else Seq.empty) } { val packageName = f.nameWithoutExtension.toLowerCase.takeWhile(_ != '_') - val routerName = swaggerTag.toUpperCamelCase + val routerName = swaggerTag.toUpperCamelCase + "Router" println(s"- Running Codegen for Swagger Tag $swaggerTag") val target = file"server/app/controllers/swagger/$apiVersion/$packageName/$routerName.scala"