Skip to content

Commit 289390c

Browse files
committed
fix(swift): disable use of group separator
1 parent 4bf4637 commit 289390c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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
}

0 commit comments

Comments
 (0)