alibaba / alibaba/HandyJSON

5.0.0-beta.1版本分模块无法把字典转模型

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

Description

我在工程中用pod的方式引入一个模块,该模块(CMCCCore)中包含了一个User的模型,我在http请求时传入BaseModel 但user对应的解析为nil。如果User没有放在模块(CMCCCore),我在http请求时传入BaseModel ,user对应的解析成功。麻烦作者看下这个问题,谢谢。

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the 5.0.0-beta.1 pod, a CMCCCore module containing User, and an HTTP request using BaseModel. Compare User decoding when the model is inside versus outside CMCCCore; done means both cases populate user instead of producing nil.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.