There is an invalid model shown on swagger UI when there is only one lowercase letter at the beginning of the field name.
My Kotlin model:
class TrendEvaluationModel(
val xAxisValue: Int,
val yAxisValue: Int,
val customValue: Int?
)
What is shown on swagger UI:
{
"customValue": 1,
"xaxisValue": 1,
"yaxisValue": 1
}
I've tried:
@Parameterannotation with specifiednameattribute but it does not work.@Schemaannotation with specifiednameattribute but it does not work.@JsonProperty("xAxisValue")and it worked but not as expected - the model on swagger showed two fields then (xaxisValueandxAxisValue) but I need only one of them (xAxisValue).
Appreciate your help.
NOTE: There is no issue if there are two or more lowercase letters at the beginning of the field name