Skip to content

Headers getting overwritten n scala-akka client generation #7258

Closed
@ParakhMittal

Description

@ParakhMittal

Description

In scala-akka-client code that is getting generated, addAuthentication method is called after setting headers using header parameter in the below mentioned line
addAuthentication(request.credentials)(
httpRequest.withHeaders(headers(request.headerParams))
)

However, in addAuthentication method, we are using withHeaders method that overwrites the headers set using header parameters.

openapi-generator version

Master 5.0.0

Command line used for generation

akka-scala-client

Steps to reproduce

Add bearer token headers along with other headers in the yaml to generate the client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions