Forum Discussion

abhi_umesh30's avatar
abhi_umesh30
Occasional Visitor
2 years ago

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 ... }
No RepliesBe the first to reply