Skip to content

Add mapping for enumeration and option values #6

@taquitos

Description

@taquitos

Right now enums and options are transcoded as whatever primitive values they are backed by. It would be nice to be able to provide strings that map to those values:
typedef NS_ENUM(NSInteger, MyEnum) {
MyEnumAValue = 1,
MyEnumSecondValue,
MyEnumThirdValue
};
so MyEnumSecondValue could map to "SecondValue" in the JSON instead of "2" (and so on)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions