Ask a Question

OpenApi Java Enum multiple values

diego-nieto
Occasional Visitor

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/res...
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 ... }

 

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: