Skip to content

Commit d9b6600

Browse files
authored
[JavaJaxRs] enumClass.mustache added getValue()
JavaJaxRs enums are missing getValue() method returning the correct data type.
1 parent d04c0dd commit d9b6600

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modules/openapi-generator/src/main/resources/JavaJaxRS/enumClass.mustache

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@
3636
this.value = value;
3737
}
3838

39-
@Override
4039
@JsonValue
40+
public {{{dataType}}} getValue() {
41+
return value;
42+
}
43+
44+
@Override
4145
public String toString() {
4246
return String.valueOf(value);
4347
}

0 commit comments

Comments
 (0)