alibaba / alibaba/HandyJSON

Is support property Dictionary<enum, any> = [:]

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

Hello Guys,Thanks for your wonderful job!
It‘s seems support property is enum only which like Dictionary
When I have a property like
enum HomeSection: String, HandyJSONEnum {
case "One"
case "Two"
}
var data:Dictionary = [:]
Can it works? I have test var dic: Dictionary = [:]
is success.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source file or test. Reproduce the existing String-keyed Dictionary case, then trace HandyJSON's property serialization and deserialization for a Dictionary; done means enum-keyed dictionaries with Any values are supported and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.