ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
137 stars 85 forks source link

Ory Client for Elixir has a typo which breaks the client #282

Closed mhaagens closed 1 year ago

mhaagens commented 1 year ago

Preflight checklist

Describe the bug

There is a typo in the Ory Client for Elixir on line 221 in lib/ory/connection.ex:

 def authorization(token, _scopes) when is_binary(token) do
    {Tesla.Middlware.Headers, ["authorization", token]}
  end

should be

 def authorization(token, _scopes) when is_binary(token) do
    {Tesla.Middleware.Headers, ["authorization", token]}
  end

This breaks the client when using a PAT.

Reproducing the bug

Use any token when calling Ory.Connection.new("TOKEN...")

Relevant log output

function Tesla.Middlware.Headers.call/3 is undefined (module Tesla.Middlware.Headers is not available)

Relevant configuration

No response

Version

Ory Client 1.1.41

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Network

Additional Context

No response

tobbbles commented 1 year ago

Hey @mhaagens - could you attempt to use my fork of the SDK and validate this is fixed? https://github.com/tobbbles/sdk

This was resolved upstream in https://github.com/OpenAPITools/openapi-generator/pull/14512 and is in the latest openapi-generator version; I'll open a pull request of my fork that addresses this.