enum with multiple fields
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2022
11:43 AM
12-05-2022
11:43 AM
enum with multiple fields
hi guys, do you know if it’s possible to generate enums with multiple fields by using openApi? I’m checking the template and it seems it just allows a single value
public enum MyEnum { OPTION_ONE(1, true, "dummy1"),
OPTION_TWO(2, true, "dummy2"),
OPTION_THREE(3, false, "dummy3"),
OPTION_FOUR(4, false, "dummy4"); private int value; private boolean isActive;
private string fieldName;
// getters ... }
Labels:
0 REPLIES 0
