AnyCodable icon indicating copy to clipboard operation
AnyCodable copied to clipboard

Type-erased wrappers for Encodable, Decodable, and Codable values

Results 19 AnyCodable issues
Sort by recently updated
recently updated
newest added

I'm trying to pass an array into a function that accepts a parameter of type `AnyCodable`. To do this I need to convert its type to `AnyCodable`. The only option...

Hello! I've noticed that in 0.6.3, the encoding of boolean types has changed in certain circumstances. I've narrowed down the code causing me issues to this: ```swift var options: AnyCodable...

Hi, I want to create generic/dynamic structure and convert AnyCodable to -> Login/Register/X Response Model. I easily convert Model to AnyCodable like this -> AnyCodable( LoginResponseModel(parameter: "") ) However, if...

print(AnyCodable.init(["1"]) == AnyCodable.init(["1"])) // print false print(AnyCodable.init(["1:2"]) == AnyCodable.init(["1:2"])) // print false I am using AnyCodable-FlightSchool 0.6.0

bug

See [the results](https://github.com/Flight-School/AnyCodable/actions/runs/917103938) of #60.

I've checked some structures presented by Foundation framework, and tested them. There are JSON coders and _PropertyList coders in Foundation framework, so I tested them on _JSONEncoder_ and _PropertyListEncoder_ using...

According to Itai Ferber on the Swift forums the implementation used in `AnyEncoder` is incorrect because it can't access custom encoding strategies of the type-erased type: See https://forums.swift.org/t/how-to-encode-objects-of-unknown-type/12253/6 Any ideas?...

https://github.com/supabase-community/supabase-swift/issues/38 At the bottom of this ticket I’ve successfully exported any cod able along with 6-7 other frameworks but then hit a snag with this library. Are you aware that...