Skip to content

Releases: the-yuyut/SuperCodable

Can Codable with optional by @OptionalKeyed

Choose a tag to compare

@the-yuyut the-yuyut released this 12 Apr 05:39
- @Keyed var id: String?
+@OptionalKeyed var id: String?

Please note Keyed var _: TYPE? will make a runtime error to tell you the disability on optional.

@Keyed can get key during run time

Choose a tag to compare

@the-yuyut the-yuyut released this 11 Apr 12:00
struct JSON: SuperCodable {
-    @Keyed("id") var id: String
+    @Keyed var id: String
}

First release

Choose a tag to compare

@the-yuyut the-yuyut released this 10 Apr 11:02
1.0.0

add test setting