alibaba / alibaba/HandyJSON

HandyJSON 二进制化后,Model(class)解析数据为空(struct类型的model数据解析正常)

Open
#434 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

![image](https://user-images.githubusercontent.com/6700434/124918565-c1850a00-e027-11eb-846f-66792001d446.png)
open class HYBaseModel : HYBase_PublicModels.HYBaseModelProtocol {

required public init()

open func mapping(mapper: HandyJSON.HelpingMapper)
}

public protocol HYBaseModelProtocol : HandyJSON.HandyJSON {
}

![image](https://user-images.githubusercontent.com/6700434/124919294-a36bd980-e028-11eb-882c-32a1f639e5fc.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named in the report; start by reproducing the failure with the shown HYBaseModelProtocol/class model after binaryization, comparing it with the working struct model. Trace HandyJSON's class-model deserialization and mapping entry points. Done means the class model is populated correctly without regressing struct parsing.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.