forked from loafle/openapi-generator-original
Fix Elixir connection.ex middleware usage and regenerate elixir sample (#16461)
This commit is contained in:
parent
1b32088c2d
commit
ecb56f1e88
@ -284,7 +284,7 @@ defmodule {{moduleName}}.Connection do
|
||||
def authorization(token, scopes \\ @default_scopes)
|
||||
|
||||
def authorization(token, _scopes) when is_binary(token) do
|
||||
{Tesla.Middleware.Headers, ["authorization", token]}
|
||||
{Tesla.Middleware.Headers, [{"authorization", token}]}
|
||||
end
|
||||
|
||||
def authorization({module, function}, scopes) when is_atom(module) and is_atom(function) do
|
||||
|
@ -216,7 +216,7 @@ defmodule OpenapiPetstore.Connection do
|
||||
def authorization(token, scopes \\ @default_scopes)
|
||||
|
||||
def authorization(token, _scopes) when is_binary(token) do
|
||||
{Tesla.Middleware.Headers, ["authorization", token]}
|
||||
{Tesla.Middleware.Headers, [{"authorization", token}]}
|
||||
end
|
||||
|
||||
def authorization({module, function}, scopes) when is_atom(module) and is_atom(function) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user