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 ),