OpenApi Java Enum multiple values
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022
03:05 AM
05-11-2022
03:05 AM
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...
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 ... }
Labels:
- Labels:
-
Swagger Codegen
-
Swagger Editor
0 REPLIES 0
