alibaba / alibaba/HandyJSON

自定义解析路径能够自动化吗

Open
#415 0 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

` var userId: String?
var userName: String?

override func mapping(mapper: HelpingMapper) {
mapper <<<
userId <-- "user_id"
mapper <<<
userName <-- "user_name"
}`

遇到这种带下划线的风格,有没有办法自动转换成驼峰的风格

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the mapping(mapper: HelpingMapper) entry point shown in the issue and the library's existing mapping behavior. Define the intended snake_case-to-camelCase scope and a verifiable example; done should mean the automatic conversion behavior and compatibility expectations are specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.