🚀 v6.0.1(Release Notes) ✅ 主要更新 🟢 新增:SmartCompact 命名空间(Array / Dictionary 宽容解析) 新增 SmartCompact 命名空间,用于组织数组/字典的容错解析 Property Wrapper: @SmartCompact.Array:对数组进行宽容解析,解析失败的元素会被自动跳过。 @SmartCompact.Dictionary:对字典进行宽容解析,解析失败的键值对会被自动跳过。 示例:
struct Model: Decodable {
@SmartCompact.Array
var ages: [Int]
@SmartCompact.Dictionary
var info: [String: Any]
}
🟡 优化:Smart...