diff --git a/deployment/src/main/resources/templates/libraries/microprofile/enumOuterClass.qute b/deployment/src/main/resources/templates/libraries/microprofile/enumOuterClass.qute index 40a6511b..ee7cdfcb 100644 --- a/deployment/src/main/resources/templates/libraries/microprofile/enumOuterClass.qute +++ b/deployment/src/main/resources/templates/libraries/microprofile/enumOuterClass.qute @@ -21,8 +21,12 @@ import java.util.EnumSet; this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public {#if e.isContainer}{e.items.dataType}{#else}{e.dataType}{/if} value() { + return value; + } + @Override - @JsonValue public String toString() { return String.valueOf(value); }