Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to map >> Map<String, BigDecimal> in java using "@ApiModelProperty" #542

Closed
mibrahim-iti opened this issue Jan 18, 2016 · 1 comment
Closed

Comments

@mibrahim-iti
Copy link

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

@webron
Copy link
Member

webron commented Jan 18, 2016

Please open the issue on swagger-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants