forked from loafle/openapi-generator-original
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
This commit is contained in:
parent
4f1d7c0f04
commit
982491e117
@ -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
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user