MetaCodable icon indicating copy to clipboard operation
MetaCodable copied to clipboard

Supercharge Swift's Codable implementations with macros meta-programming.

Results 18 MetaCodable issues
Sort by recently updated
recently updated
newest added

- [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:...

enhancement

- [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...

enhancement
good first issue

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...

help wanted
question
workaround provided

## 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...

enhancement
good first issue

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 {...

enhancement
good first issue

- [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...

enhancement
good first issue

- [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** ![CleanShot 2024-06-13 at 17 22 29](https://github.com/SwiftyLab/MetaCodable/assets/10215098/6ccc76c8-aa7b-41fb-a9e2-9af25bf8eab5) **Describe...

enhancement