mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 23:57:06 +00:00
modify enum template. field should be final. add testcase & sample updates. (#21019)
This commit is contained in:
@@ -49,7 +49,7 @@ public class Order {
|
||||
|
||||
DELIVERED("delivered");
|
||||
|
||||
private String value;
|
||||
private final String value;
|
||||
|
||||
StatusEnum(String value) {
|
||||
this.value = value;
|
||||
|
||||
@@ -57,7 +57,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