Additional documents for the field
#deprecated info(java)
field.doc[#deprecated]=groovy:"\n「Deprecated」" + it.doc("deprecated")
field.doc[@java.lang.Deprecated]=「Deprecated」
#deprecated info(kotlin)
field.doc[@kotlin.Deprecated]=groovy:"\n「Deprecated」" + it.ann("kotlin.Deprecated","message")
field.doc=@io.swagger.annotations.ApiModelProperty#value
SwaggerModel.java
public class SwaggerModel {
/**
* @deprecated No longer used
*/
@ApiModelProperty(value = "Field A", required = true)
private String a;
//constructors...
//getters...
}
name | type | required | default | desc | other |
---|---|---|---|---|---|
a | string | NO | Field A 「Deprecated」No longer used |