Star-Lord-PHB/swift-codable-macro
Macros for automatically generating customizable conformance to `Codable` protocol.
This helps Swift developers more easily work with data from external sources like REST APIs, where the incoming data structure doesn't perfectly match their application's data models. Instead of writing extensive manual code to convert data, developers can use macros to automatically generate the necessary `Codable` conformance. This project is for Swift application developers who need to integrate with external data formats without boilerplate.
No commits in the last 6 months.
Use this if you are a Swift developer frequently integrating with third-party APIs or other external data sources that have inconsistent or deeply nested JSON structures.
Not ideal if your Swift application only handles data where the incoming structure perfectly matches your internal `Codable` types, or if you prefer to write all data serialization logic manually.
Stars
8
Forks
1
Language
Swift
License
MIT
Category
Last pushed
Jun 14, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/Star-Lord-PHB/swift-codable-macro"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
SwiftyLab/MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming.
WendellXY/CodableKit
A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy...
DanielMSchmidt/objective-c-parser
Get the JSON representation of an Objective-C header file
yonaskolb/SwagGen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Lighter-swift/Lighter
Swift APIs for SQLite: Type-safe down to the schema. Very, very, fast. Dependency free.