Skip to content

Commit fa7f5a2

Browse files
Fix pattern in scala aka http server generator (#23423)
* fix pattern in scala aka http server generator * 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> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent 6448263 commit fa7f5a2

File tree

1 file changed

+1
-1
lines changed
  • modules/openapi-generator/src/main/resources/scala-akka-http-server

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/scala-akka-http-server/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class {{classname}}(
5656
{{^pathMatcherPatterns.isEmpty}}
5757
object {{classname}}Patterns {
5858
59-
{{#pathMatcherPatterns}}val {{pathMatcherVarName}}: PathMatcher1[String] = PathMatcher("{{pattern}}".r)
59+
{{#pathMatcherPatterns}}val {{pathMatcherVarName}}: PathMatcher1[String] = PathMatcher("""{{{pattern}}}""".r)
6060
{{/pathMatcherPatterns}}
6161
}
6262
{{/pathMatcherPatterns.isEmpty}}

0 commit comments

Comments
 (0)