mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-05 23:16:11 +00:00
[swift6] add credentials by default (#19885)
This commit is contained in:
@@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
|
||||
self.openAPIClient = openAPIClient
|
||||
|
||||
addHeaders(openAPIClient.customHeaders)
|
||||
addCredential()
|
||||
}
|
||||
|
||||
open func addHeaders(_ aHeaders: [String: String]) {
|
||||
@@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
|
||||
return self
|
||||
}
|
||||
|
||||
open func addCredential() -> Self {
|
||||
open func addCredential() {
|
||||
credential = openAPIClient.credential
|
||||
return self
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user