Skip to content

containerDefaultToNull=true is not backward compatible #604

Closed

Description

@walaniam

This PR containerDefaultToNull has changed default behaviour.

Generated code is invalid.

  @Valid
  private List<@Valid PaymentRequestLine> lines;

...

  @NotNull @Valid 
  @Schema(name = "lines", requiredMode = Schema.RequiredMode.REQUIRED)
  @JsonProperty("lines")
public List<@Valid PaymentRequestLine> getLines() {
  return lines;
}

By default there should be empty collection generated (with posibility to override it).

Activity

  1. self-assigned this
    on Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions