Skip to content

Commit 66b9219

Browse files
committed
Merge branch 'master' into support-deprecation-for-kotlin-spring
2 parents 2fa692c + dedd2fc commit 66b9219

55 files changed

Lines changed: 55 additions & 29 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/openapi-generator/src/main/resources/swift5/Extensions.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ extension KeyedEncodingContainerProtocol {
159159
let numberFormatter = NumberFormatter()
160160
numberFormatter.numberStyle = .decimal
161161
numberFormatter.locale = Locale(identifier: "en_US")
162+
numberFormatter.usesGroupingSeparator = false
162163
let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)"
163164
try encode(formattedString, forKey: key)
164165
}

modules/openapi-generator/src/main/resources/swift6/Extensions.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ extension KeyedEncodingContainerProtocol {
149149
let numberFormatter = NumberFormatter()
150150
numberFormatter.numberStyle = .decimal
151151
numberFormatter.locale = Locale(identifier: "en_US")
152+
numberFormatter.usesGroupingSeparator = false
152153
let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)"
153154
try encode(formattedString, forKey: key)
154155
}

modules/openapi-generator/src/main/resources/swift6/SynchronizedDictionary.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import Foundation
88

9-
internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
9+
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
1010
1111
private var dictionary = [K: V]()
1212
private let lock = NSRecursiveLock()

modules/openapi-generator/src/main/resources/swift6/libraries/alamofire/AlamofireImplementations.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fileprivate class AlamofireRequestBuilderConfiguration: @unchecked Sendable {
2424
static let shared = AlamofireRequestBuilderConfiguration()
2525

2626
// Store manager to retain its reference
27-
var managerStore = SynchronizedDictionary<String, Alamofire.Session>()
27+
let managerStore = SynchronizedDictionary<String, Alamofire.Session>()
2828
}
2929

3030
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class AlamofireRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {

modules/openapi-generator/src/main/resources/swift6/libraries/urlsession/URLSessionImplementations.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
6666
let defaultURLSession: URLSession
6767

6868
// Store current URLCredential for every URLSessionTask
69-
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
69+
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
7070
}
7171

7272
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Extensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ extension KeyedEncodingContainerProtocol {
157157
let numberFormatter = NumberFormatter()
158158
numberFormatter.numberStyle = .decimal
159159
numberFormatter.locale = Locale(identifier: "en_US")
160+
numberFormatter.usesGroupingSeparator = false
160161
let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)"
161162
try encode(formattedString, forKey: key)
162163
}

samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Extensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ extension KeyedEncodingContainerProtocol {
157157
let numberFormatter = NumberFormatter()
158158
numberFormatter.numberStyle = .decimal
159159
numberFormatter.locale = Locale(identifier: "en_US")
160+
numberFormatter.usesGroupingSeparator = false
160161
let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)"
161162
try encode(formattedString, forKey: key)
162163
}

samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Extensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ extension KeyedEncodingContainerProtocol {
157157
let numberFormatter = NumberFormatter()
158158
numberFormatter.numberStyle = .decimal
159159
numberFormatter.locale = Locale(identifier: "en_US")
160+
numberFormatter.usesGroupingSeparator = false
160161
let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)"
161162
try encode(formattedString, forKey: key)
162163
}

samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Extensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ extension KeyedEncodingContainerProtocol {
157157
let numberFormatter = NumberFormatter()
158158
numberFormatter.numberStyle = .decimal
159159
numberFormatter.locale = Locale(identifier: "en_US")
160+
numberFormatter.usesGroupingSeparator = false
160161
let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)"
161162
try encode(formattedString, forKey: key)
162163
}

samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Extensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ extension KeyedEncodingContainerProtocol {
157157
let numberFormatter = NumberFormatter()
158158
numberFormatter.numberStyle = .decimal
159159
numberFormatter.locale = Locale(identifier: "en_US")
160+
numberFormatter.usesGroupingSeparator = false
160161
let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)"
161162
try encode(formattedString, forKey: key)
162163
}

0 commit comments

Comments
 (0)