yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing support using Multiple Authentication Types

malteburkert opened this issue · comments

According to https://swagger.io/docs/specification/authentication it is possible to specify multiple authentication types for operations. The SwagGen tool seems to not support this requirement. The APIService cannot be initiated with multiple securityRequirements. And it is even not possible to modify the template in order to support this feature. Could you please help with this inquiry?

If you need this you can indeed update the template. In addition to the securityRequirement property in the Request.swift template, you can use the plural securityRequirements which is an array.

If you do make such updates to the template, I'm happy to accept a PR that supports multiple

@yonaskolb is it possible that the parsing of the swagger spec does not support the AND of multiple securityRequirements?

@malteburkert not sure what you mean?

ezoic increase your site revenue