Forum Discussion

diego-nieto's avatar
Occasional Visitor
3 years ago

OpenApi Java Enum multiple values

hi guys, do you know if it’s possible to generate enums with multiple values by using openApi? I’m checking the template and it seems it just allows a single value
public enum MyEnum {
    OPTION_ONE(1, true),
OPTION_TWO(2, true),
OPTION_THREE(3, false),
OPTION_FOUR(4, false); private int value; private boolean isActive;

// getters ... }


No RepliesBe the first to reply