Skip to content

Commit 2ef6935

Browse files
committed
update swift samples
1 parent 289390c commit 2ef6935

24 files changed

Lines changed: 24 additions & 0 deletions

File tree

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
}

samples/client/petstore/swift5/oneOf/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/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Extensions.swift

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

samples/client/petstore/swift5/resultLibrary/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/urlsessionLibrary/Sources/PetstoreClient/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/validation/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)