Skip to content

Commit f24f3b1

Browse files
committed
[swift6][client] All models conform to Codable so this method should not be needed anymore
1 parent 701b6bd commit f24f3b1

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,4 @@ import Foundation
2626
return params
2727
}
2828

29-
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class func encodingParameters(forEncodableObject encodableObj: Any?, codableHelper: CodableHelper) -> [String: any Sendable]? {
30-
var params: [String: any Sendable]?
31-
32-
if let encodableObj = encodableObj {
33-
do {
34-
let data = try JSONSerialization.data(withJSONObject: encodableObj, options: .prettyPrinted)
35-
params = JSONDataEncoding.encodingParameters(jsonData: data)
36-
} catch {
37-
print(error.localizedDescription)
38-
return nil
39-
}
40-
}
41-
42-
return params
43-
}
44-
4529
}

0 commit comments

Comments
 (0)