enum should be in their own files
redwarp opened this issue · comments
I think enums, being specific class, should be also defined in a specific json file, with of format like
{
"do_json": true,
"package": "com.yelp.android.biz.serializable",
"type": "enum",
"values": [
"VALUE_1",
"VALUE_2",
...
]
}
The fact that they are currently generated inside another class makes it impossible to reuse them among parcel generated classes.
The counterargument is what happens when you have two parcel generate classes that define an enum of the same name, but for different purposes?
We originally had them separated, but decided we wanted to be safe and avoid this problem.