How to add multiple apiKey to OpenAPI Generator in Kotlin

Viewed 29

Why I cannot use multiple apiKey securities with Kotlin generator? This is my spec:

...
components:
  securitySchemes:
    Apikey:
      type: apiKey
      in: header
      name: apikey
    Loginkey:
      type: apiKey
      in: header
      name: loginkey
...

...and this is what I get in Kotlin:

import org.openapitools.client.auth.ApiKeyAuth
import org.openapitools.client.auth.ApiKeyAuth

Why there are two imports?

0 Answers
Related