Estoy tratando de crear springDoc arrogancia de la documentación, y me gustaría representar una información como esta
List<String> elements;
tener algunas propiedades como minSize y MaxSize / minLength longitud máxima de los valores en la lista.
He intentado con este
@Schema(required = true, minLength = 12,maxLength = 20)
List<String> elements;
y
@Size(min=10,max=20)
List<String> elements;
resultado:
"Products": {
"title": "Products",
"type": "object",
"properties": {
"elements": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
Alguna idea Para tener este resultado :
"Products": {
"title": "Products",
"type": "object",
"properties": {
"elements": {
"type": "array",
"items": {
"type": "string",
"maxLength": 20,
"minLength": 5
}
}
}
}