Skip to content

[BUG] Ruby client doesn't compile when Cookie Header Auth is present in OpenAPI schema #6959

Open
@dkliban

Description

@dkliban
Description

When cookie support for header auth is present in the OpenAPI schema v3, the Ruby client produced contains nothing after the : on the following line:

https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/ruby-client/configuration.mustache#L173

On the other hand the Python client is generated correctly.

My understanding is that cookie header auth is not supported by the Ruby client, but the client should still compile.

openapi-generator version

4.3.1

Suggest a fix

In our current workflow we replace line 173 from the template with
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/python/configuration.mustache#L488

However, that is probably not exactly right because it gives the wrong impression to the user that cookie auth is supported, when in reality it is not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions