From 4978e41a4fb02293293246dc18a7a7d6d2d55642 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 2 Apr 2026 14:21:54 +0800 Subject: [PATCH 1/2] fix pattern in scala aka http server generator --- .../src/main/resources/scala-akka-http-server/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache b/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache index 57a72c7387e7..1e78f6d968d5 100644 --- a/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache +++ b/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache @@ -56,7 +56,7 @@ class {{classname}}( {{^pathMatcherPatterns.isEmpty}} object {{classname}}Patterns { - {{#pathMatcherPatterns}}val {{pathMatcherVarName}}: PathMatcher1[String] = PathMatcher("{{pattern}}".r) + {{#pathMatcherPatterns}}val {{pathMatcherVarName}}: PathMatcher1[String] = PathMatcher("{{{pattern}}}".r) {{/pathMatcherPatterns}} } {{/pathMatcherPatterns.isEmpty}} From 49d774e6d7b02ed461823079869eb8fabc6d9223 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 2 Apr 2026 14:41:23 +0800 Subject: [PATCH 2/2] Update modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- .../src/main/resources/scala-akka-http-server/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache b/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache index 1e78f6d968d5..84ea3ecf31fd 100644 --- a/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache +++ b/modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache @@ -56,7 +56,7 @@ class {{classname}}( {{^pathMatcherPatterns.isEmpty}} object {{classname}}Patterns { - {{#pathMatcherPatterns}}val {{pathMatcherVarName}}: PathMatcher1[String] = PathMatcher("{{{pattern}}}".r) + {{#pathMatcherPatterns}}val {{pathMatcherVarName}}: PathMatcher1[String] = PathMatcher("""{{{pattern}}}""".r) {{/pathMatcherPatterns}} } {{/pathMatcherPatterns.isEmpty}}