Код: Выделить всё
data class SageResponseBody(
val data: T
)
Код: Выделить всё
@ApiResponses(
value = [ApiResponse(
responseCode = "200",
description = "request success",
content = [Content(
mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = Schema(type = "object", properties = [StringToClassMapItem(List::class, key = "data")])
)]
)]
)
Код: Выделить всё
"responses": {
"200": {
"description": "request success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
}
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... gger2-x-ja