diego-nieto
3 years agoOccasional 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/resources/JavaSpring/enumOuterClass.mustache
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 ... }