From 982491e117f4e106657e5f2380bd7ed0fc13a8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=ADmur=20Kristinsson?= Date: Mon, 15 Jun 2020 01:18:50 +0000 Subject: [PATCH] Use supplied packageName instead of hardcoded (#6561) Hardcoding open_api_utils there breaks this package if packageName option is used for generating the server code --- .../src/main/resources/erlang-server/auth.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/erlang-server/auth.mustache b/modules/openapi-generator/src/main/resources/erlang-server/auth.mustache index c651c1c80e3..3f3e9e94553 100644 --- a/modules/openapi-generator/src/main/resources/erlang-server/auth.mustache +++ b/modules/openapi-generator/src/main/resources/erlang-server/auth.mustache @@ -40,7 +40,7 @@ get_api_key(header, KeyParam, Req) -> Headers = cowboy_req:headers(Req), { maps:get( - openapi_utils:to_header(KeyParam), + {{packageName}}_utils:to_header(KeyParam), Headers, undefined ),