Given the following step:
Swagger Definition:
address_start_date:
type: string
format: 'date-time'
example: "2011-12-03 10:15:30"
description: |
Start Date for address
swagger-codegen-maven-plugin 3.0.56 generates the following model:
/**
* Start Date for address
* @return addressStartDate
**/
@Valid
@Schema(description = "Start Date for address ")
public LocalDateTime getAddressStartDate() {
return addressStartDate;
}
While swagger-codegen-maven-plugin 3.0.57 generates this:
/**
* Start Date for address
* @return addressStartDate
**/
@NotNull // <--- This is added by default
@Valid
@Schema(description = "Start Date for address ")
public LocalDateTime getAddressStartDate() {
return addressStartDate;
}
It seems that this is what introduced with #1291
Given the following step:
Swagger Definition:
swagger-codegen-maven-plugin
3.0.56generates the following model:While swagger-codegen-maven-plugin
3.0.57generates this:It seems that this is what introduced with #1291