MetaCodable
MetaCodable copied to clipboard
Supercharge Swift's Codable implementations with macros meta-programming.
- [x] I have read the [documentation](https://swiftpackageindex.com/SwiftyLab/MetaCodable/main/documentation/metacodable). **Describe the bug** Below code works well. working code ```swift @Codable @CodedAs @CodedAt("operation") protocol ResponseAttributes {} @Codable struct Response { @CodedIn("data") let id:...
- [x] I have read the [documentation](https://swiftpackageindex.com/SwiftyLab/MetaCodable/main/documentation/metacodable). **Describe the bug** `xcodebuild archive` fails in the following scenario. **To Reproduce** Steps to reproduce the behavior: 1. Create a Swift Package, which...
If a SwiftData model annotation is added to a class, the build will fail with "Method does not override any method from its superclass". It can be reproduced using a...
## 1. Mutable variables can have default values added by adding initialization syntax. ### We can get the default value whether it is a surface value or an expression from...
## 1. Extend the `Default` attribute by parameter packs like this: ``` Swift @attached(peer) @available(swift 5.9) public macro Default(_ defaults: repeat each T) = #externalMacro(module: "MacroPlugin", type: "Default") ``` ###...
# This is an amazing project about swift macros. ## In the past, some implementations I needed could only be achieved by customizing official codecs such as JSONDecoder/JSONEncoder. I want...
Is there a way to decode a model's property key with a name and encode it using a different name ? for ex. if have the following model: ``` @Codable...
Right now `@Codable` macro will generate CodingKeys with internal access level. ``` @Codable @CodingKeys(.PascalCase) public struct MessageReceiver { public let userId: UUID public let status: OData.Enum } extension MessageThread.Response.MessageReceiver {...
- [x] I have read the [documentation](https://swiftpackageindex.com/SwiftyLab/MetaCodable/main/documentation/metacodable). I want to replace the previous tool with it. However, I am facing an issue now. My Swift object data comes from many...
- [x] I have read the [documentation](https://swiftpackageindex.com/SwiftyLab/MetaCodable/main/documentation/metacodable). **Is your feature request related to a problem? Please describe.** Nope **Describe the solution you'd like**  **Describe...