From bfa84f15df60c8b53583aa8bc1706fb8f172a02e Mon Sep 17 00:00:00 2001 From: Yurii Titov Date: Tue, 3 Mar 2026 15:53:56 +0100 Subject: [PATCH] fix: duplicated discriminator serialisation issue --- .../src/main/templates/boat-spring/typeInfoAnnotation.mustache | 1 - 1 file changed, 1 deletion(-) diff --git a/boat-scaffold/src/main/templates/boat-spring/typeInfoAnnotation.mustache b/boat-scaffold/src/main/templates/boat-spring/typeInfoAnnotation.mustache index 4f49c4a0f..c2b7f0c89 100644 --- a/boat-scaffold/src/main/templates/boat-spring/typeInfoAnnotation.mustache +++ b/boat-scaffold/src/main/templates/boat-spring/typeInfoAnnotation.mustache @@ -3,7 +3,6 @@ {{#-first}} @JsonIgnoreProperties( value = "{{{discriminator.propertyBaseName}}}", // ignore manually set {{{discriminator.propertyBaseName}}}, it will be automatically generated by Jackson during serialization - allowGetters = true, // allows the {{{discriminator.propertyBaseName}}} to be set during serialization allowSetters = true // allows the {{{discriminator.propertyBaseName}}} to be set during deserialization ) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "{{{discriminator.propertyBaseName}}}", visible = true)