forked from loafle/openapi-generator-original
modify enum template. field should be final. add testcase & sample updates. (#21019)
This commit is contained in:
@@ -46,7 +46,7 @@ public class Order {
|
||||
|
||||
DELIVERED("delivered");
|
||||
|
||||
private String value;
|
||||
private final String value;
|
||||
|
||||
StatusEnum(String value) {
|
||||
this.value = value;
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Pet {
|
||||
|
||||
SOLD("sold");
|
||||
|
||||
private String value;
|
||||
private final String value;
|
||||
|
||||
StatusEnum(String value) {
|
||||
this.value = value;
|
||||
|
||||
Reference in New Issue
Block a user