You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: "[ equals to <" and "] equals to >"
Actually i want to map "Map of [String, BigDecimal]" property using " @ApiModelProperty" to generate it right in swagger.json file,
i did it as:
@ApiModelProperty(name ="Data", notes = "Data", dataType = "Map[string,string]")
public Map[String, String] getData() {
return data;
}
and i got this in swagger.json file
"Data": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
but i think this mapping is wrong, am i right?
and if this is wrong, what should i do?
thanks
The text was updated successfully, but these errors were encountered:
Note: "[ equals to <" and "] equals to >"
Actually i want to map "Map of [String, BigDecimal]" property using " @ApiModelProperty" to generate it right in swagger.json file,
i did it as:
@ApiModelProperty(name ="Data", notes = "Data", dataType = "Map[string,string]")
public Map[String, String] getData() {
return data;
}
and i got this in swagger.json file
"Data": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
but i think this mapping is wrong, am i right?
and if this is wrong, what should i do?
thanks
The text was updated successfully, but these errors were encountered: