Skip to content

Commit 7836e27

Browse files
committed
Encode Data using encodeToJSON()
1 parent 1c06b4d commit 7836e27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ extension JSONEncodable where Self: Encodable {
213213
guard let data = try? encoder.encode(self) else {
214214
fatalError("Could not encode to json: \(self)")
215215
}
216-
return data.base64EncodedString(options: Data.Base64EncodingOptions())
216+
return data.encodeToJSON()
217217
}
218218
}

0 commit comments

Comments
 (0)