Using swagger-annotations and swagger-maven-plugin, version 2.2.9.
Upgrading to 2.2.9, the following happens:
@Schema(example = "4242424242424242", minLength = 12, maxLength = 19, required = true)
is generated as:
type: string example: "4242424242424242" maxLength: 19 minLength: 1
@Schema(example = "123", minLength = 3, maxLength = 4, required = true)
is generated as
type: string example: "123" maxLength: 4 minLength: 1