We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Data
encodeToJSON()
1 parent 1c06b4d commit 7836e27Copy full SHA for 7836e27
1 file changed
modules/openapi-generator/src/main/resources/swift5/Extensions.mustache
@@ -213,6 +213,6 @@ extension JSONEncodable where Self: Encodable {
213
guard let data = try? encoder.encode(self) else {
214
fatalError("Could not encode to json: \(self)")
215
}
216
- return data.base64EncodedString(options: Data.Base64EncodingOptions())
+ return data.encodeToJSON()
217
218
0 commit comments