From 772567b90ae872528c354a722f259a46cf5d5879 Mon Sep 17 00:00:00 2001 From: Dennis Gyldendahl Jensen Date: Tue, 17 Oct 2023 15:42:07 +0200 Subject: [PATCH] Added method with JsonValue annotation and brought enumOuterClass.qute more in line with enumClass.qute that has the very same method, removed JsonValue annotation on toString method. --- .../templates/libraries/microprofile/enumOuterClass.qute | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }