@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Inherited public @interface ApiModelProperty
Modifier and Type | Optional Element and Description |
---|---|
String |
access
Allows for filtering a property from the API documentation.
|
String |
allowableValues
Limits the acceptable values for this property.
|
String |
dataType
The data type of the parameter.
|
boolean |
hidden
Allows a model property to be hidden in the Swagger model definition.
|
String |
notes
Currently not in use.
|
int |
position
Allows explicitly ordering the property in the model.
|
boolean |
required
Specifies if the parameter is required or not.
|
String |
value
A brief description of this property.
|
public abstract String value
public abstract String allowableValues
[first, second, third]
.range[1, 5]
.range[1, infinity]
means the
minimum allowable value of this parameter is 1.public abstract String access
com.wordnik.swagger.core.filter.SwaggerSpecFilter
public abstract String notes
public abstract String dataType
public abstract boolean required
public abstract int position
public abstract boolean hidden
Copyright © 2014. All Rights Reserved.