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 parameter.
|
String |
dataType
The data type of the parameter.
|
String |
example
A sample value for the property.
|
boolean |
hidden
Allows a model property to be hidden in the Swagger model definition.
|
String |
name
Allows overriding the name of the property.
|
String |
notes
Currently not in use.
|
int |
position
Allows explicitly ordering the property in the model.
|
boolean |
readOnly
Allows a model property to be designated as read only.
|
String |
reference
Specifies a reference to the corresponding type definition, overrides any other metadata specified
|
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 name
public abstract String allowableValues
There are three ways to describe the allowable values:
first, second, third
.range[1, 5]
, range(1, 5)
, range[1, 5)
.range[1, infinity]
means the
minimum allowable value of this parameter is 1.public abstract String access
public abstract String notes
public abstract String dataType
This can be the class name or a primitive. The value will override the data type as read from the class property.
public abstract boolean required
public abstract int position
public abstract boolean hidden
public abstract String example
public abstract boolean readOnly
public abstract String reference
Copyright © 2015. All Rights Reserved.