diff --git a/languages/javalang/builder-renderer/java-builder-client/src/main/kotlin/io/vrap/codegen/languages/javalang/client/builder/producers/JavaModelClassFileProducer.kt b/languages/javalang/builder-renderer/java-builder-client/src/main/kotlin/io/vrap/codegen/languages/javalang/client/builder/producers/JavaModelClassFileProducer.kt index 3842b958..8e287599 100644 --- a/languages/javalang/builder-renderer/java-builder-client/src/main/kotlin/io/vrap/codegen/languages/javalang/client/builder/producers/JavaModelClassFileProducer.kt +++ b/languages/javalang/builder-renderer/java-builder-client/src/main/kotlin/io/vrap/codegen/languages/javalang/client/builder/producers/JavaModelClassFileProducer.kt @@ -283,7 +283,7 @@ class JavaModelClassFileProducer constructor(override val vrapTypeProvider: Vrap .filterNot { it.name == this.discriminator() && this.discriminatorValue != null} .map { if(it.isPatternProperty()) { - "@JsonAnySetter() final Map values" + "@JsonAnySetter @JsonProperty(\"values\") final Map values" }else if(it.name.equals("interface")) { "@JsonProperty(\"${it.name.lowerCamelCase()}\") final ${it.type.toVrapType().fullClassName()} _interface" } else {