You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
this bug was noticed since 2.6.0 and still exists in 2.7.0 and block update SpringBoot in my app to version 3.4.0. Problem is that I have classes like below:
@Data
public class PreferenceData {
@Schema(
description = "Title",
example = "My Title"
)
@NotBlank
private String title;
@NotNull
@Valid
private PreferenceConfigData config;
....
@Data
public class PreferenceConfigData {
@JsonUnwrapped
private PreferenceConfigSection preferenceConfigSection;
}
@Data
public class PreferenceConfigSection {
//some @NotNull and @NotBlank fields
}
Finally in generated json field config is empty, it doesn't contain any fields from DashboardConfigSection.
I've tried some suggestions like SpringDocUtils.getConfig().addParentType
or disabling springdoc.model-converters.polymorphic-converter.enabled but any of it resolve my issue.
The text was updated successfully, but these errors were encountered:
Murasj
changed the title
Annotation JsonUnwrapper generates empty field
Annotation @JsonUnwrapped generates empty field
Dec 12, 2024
Hi,
this bug was noticed since 2.6.0 and still exists in 2.7.0 and block update SpringBoot in my app to version 3.4.0. Problem is that I have classes like below:
Finally in generated json field config is empty, it doesn't contain any fields from DashboardConfigSection.
I've tried some suggestions like
SpringDocUtils.getConfig().addParentType
or disabling
springdoc.model-converters.polymorphic-converter.enabled
but any of it resolve my issue.The text was updated successfully, but these errors were encountered: