Modifier and Type | Optional Element and Description |
---|---|
String |
access
Allows for filtering a parameter from the API documentation.
|
String |
allowableValues
Limits the acceptable values for this parameter.
|
boolean |
allowEmptyValue
Adds the ability to set a format as empty
|
boolean |
allowMultiple
Specifies whether the parameter can accept multiple values by having multiple occurrences.
|
String |
collectionFormat
adds ability to override collectionFormat with `array` types
|
String |
defaultValue
Describes the default value for the parameter.
|
String |
example
a single example for non-body type parameters
|
Example |
examples
Examples for the parameter.
|
String |
format
Adds the ability to provide a custom format
|
boolean |
hidden
Hides the parameter from the list of parameters.
|
String |
name
The parameter name.
|
boolean |
readOnly
adds ability to be designated as read only.
|
boolean |
required
Specifies if the parameter is required or not.
|
String |
type
Adds the ability to override the detected type
|
String |
value
A brief description of the parameter.
|
public abstract String name
The name of the parameter will be derived from the field/method/parameter name, however you can override it.
Path parameters must always be named as the path section they represent.
public abstract String value
public abstract String defaultValue
If the parameter is annotated with JAX-RS's @DefaultValue
, that value would
be used, but can be overridden by setting this property.
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 boolean required
Path parameters will always be set as required, whether you set this property or not.
public abstract String access
See io.swagger.core.filter.SwaggerSpecFilter for further details.
public abstract boolean allowMultiple
public abstract boolean hidden
public abstract String example
public abstract Example examples
public abstract String type
public abstract String format
public abstract boolean allowEmptyValue
public abstract boolean readOnly
public abstract String collectionFormat
Copyright © 2019. All Rights Reserved.