sushilsinha
2 years agoNew Contributor
Enum Generation with java client
Hi when i am generating java client using openapi generator enum name is not generating properly. It is removing TEST_ with name
openapi.yaml
fileType:
type: string
description: File type indicates test file or test run result
enum:
- TEST_PACKAGE
- TEST_RESULT_FILE
Actual generated java client is
@JsonAdapter(FileTypeEnum.Adapter.class)
public enum FileTypeEnum {
PACKAGE("TEST_PACKAGE"),
RESULT_FILE("TEST_RESULT_FILE");
EXPECTATION:
public enum FileType {
TEST_PACKAGE("package"),
TEST_RESULT_FILE("result");
private final String desc;
}