alibaba / alibaba/HandyJSON

Realm List 类型兼容问题,无法解析

Open
#346 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

Swift: 5.0
Realm: 3.16.1
```
@objcMembers
class HTUserInfo: Object, HandyJSON {
let role = List()
}

HTUserInfo.deserialize(from: json)
```
role应该是 ["1", "2"] 但解析出来是个空数组

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file or test is named. Start at HTUserInfo.deserialize(from:) and trace how the Realm List property is handled during deserialization, then compare it with the expected ["1", "2"] result. Done means Realm-backed List values are populated correctly and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.