From bd8ee83dcb775a8f005b4d514afc7745df1f7bd3 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 21 Oct 2024 16:58:05 +1300 Subject: [PATCH] Fix nested object serialization with generics --- templates/apple/Sources/Client.swift.twig | 7 +------ templates/swift/Sources/Client.swift.twig | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/templates/apple/Sources/Client.swift.twig b/templates/apple/Sources/Client.swift.twig index 2a93f526c..b5e65d229 100644 --- a/templates/apple/Sources/Client.swift.twig +++ b/templates/apple/Sources/Client.swift.twig @@ -440,12 +440,7 @@ open class Client { || param is [Bool: Any] { encodedParams[key] = param } else { - let value = try! (param as! Encodable).toJson() - - let range = value.index(value.startIndex, offsetBy: 1)..