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
But if we have an array of this objects: "repTemplates": { "type": "array", "items": { "javaType": "de.domain.dto.model.ReportTemplateDto" } }
The plugin generates this code: @JsonProperty("repTemplates") @Valid private List<ReportTemplateDto> repTemplates = new ArrayList<ReportTemplateDto>();
We expect that a list of this Items should not be validated, like a single object.
The text was updated successfully, but these errors were encountered:
Hi,
we use the javaType property in our schemas, because we don't want to validate referenced schema files.
When we use it with single properties, the generation of Java pojos works fine.
When we define the following code in schema:
"repTemplate": { "id": "repTemplate", "javaType": "de.domain.dto.model.ReportTemplateDto" }
The plugin generates this:
/** (Required) */ @JsonProperty("repTemplate") @NotNull private ReportTemplateDto repTemplate;
But if we have an array of this objects:
"repTemplates": { "type": "array", "items": { "javaType": "de.domain.dto.model.ReportTemplateDto" } }
The plugin generates this code:
@JsonProperty("repTemplates") @Valid private List<ReportTemplateDto> repTemplates = new ArrayList<ReportTemplateDto>();
We expect that a list of this Items should not be validated, like a single object.
The text was updated successfully, but these errors were encountered: