What would you like fabrikt to generate?
Currently minLength and maxLength constraints are not supported with Jakarta Validations in Spring Controller Interfaces.
It should generate @Size annotations like this:
...
fun getCountry(
@Size(min=2,max=2) @Valid @RequestParam(value = "countryCode", required = false) countryCode: kotlin.String?
): ResponseEntity<...>
Example Spec
/country:
get:
summary: Get Country Information
operationId: getCountry
parameters:
- name: countryCode
in: query
description: code of the country
schema:
$ref: '#/components/schemas/CountryCode'
...
components:
schemas:
CountryCode:
description: a two character country code
type: string
maxLength: 2
minLength: 2
...
Desired Output
What would you like fabrikt to generate?
Currently
minLengthandmaxLengthconstraints are not supported with Jakarta Validations in Spring Controller Interfaces.It should generate
@Sizeannotations like this:Example Spec
Desired Output