wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

@ApiModelProperty #26

Closed igler closed 10 years ago

igler commented 10 years ago

Hi, I use your great module in my Spring MVC/AngularJS application. I'd like to annotate my models with code>@ApiModelProperty</code especially the enum fields. Something like:

@Enumerated(EnumType.STRING)
@ApiModelProperty(value = "Location category", required=true, allowableValues = "INTERNAL, EXTERNAL")
private LocationCategory locationCategory

The goal is to be able to access a meta model on client side through REST-API so I know which entries can be made in locationCategory. Unfortunately it seems that this annotation is not supported?

wkennedy commented 10 years ago

The annotations @ApiModel and @ApiModelProperty are now supported as of 0.3.0.