Forum Discussion

diego-nieto's avatar
diego-nieto
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
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/JavaSpring/enumOuterClass.mustache
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