forked from loafle/openapi-generator-original
[swift5] add credentials by default (#19906)
This commit is contained in:
@@ -36,6 +36,7 @@ open class RequestBuilder<T> {
|
||||
self.requiresAuthentication = requiresAuthentication
|
||||
|
||||
addHeaders(PetstoreClientAPI.customHeaders)
|
||||
addCredential()
|
||||
}
|
||||
|
||||
open func addHeaders(_ aHeaders: [String: String]) {
|
||||
@@ -81,9 +82,8 @@ open class RequestBuilder<T> {
|
||||
return self
|
||||
}
|
||||
|
||||
open func addCredential() -> Self {
|
||||
open func addCredential() {
|
||||
credential = PetstoreClientAPI.credential
|
||||
return self
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user