Skip to content

Commit

Permalink
fix jackson annotations to be compatible with Jackson 2.17 and 2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Nov 20, 2024
1 parent 0c865e8 commit c0d85e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, ${it.type.toVrapType().fullClassName()}> values"
"@JsonAnySetter @JsonProperty(\"values\") final Map<String, ${it.type.toVrapType().fullClassName()}> values"
}else if(it.name.equals("interface")) {
"@JsonProperty(\"${it.name.lowerCamelCase()}\") final ${it.type.toVrapType().fullClassName()} _interface"
} else {
Expand Down

0 comments on commit c0d85e5

Please sign in to comment.