Modifier and Type | Optional Element and Description |
---|---|
String |
access
Allows for filtering a property from the API documentation.
|
ApiModelProperty.AccessMode |
accessMode
Allows to specify the access mode of a model property (AccessMode.READ_ONLY, READ_WRITE)
|
String |
allowableValues
Limits the acceptable values for this parameter.
|
boolean |
allowEmptyValue
Allows passing an empty value
|
String |
dataType
The data type of the parameter.
|
String |
example
A sample value for the property.
|
Extension[] |
extensions |
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
Deprecated.
As of 1.5.19, replaced by
accessMode() |
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
@Deprecated public abstract boolean readOnly
accessMode()
public abstract ApiModelProperty.AccessMode accessMode
public abstract String reference
public abstract boolean allowEmptyValue
public abstract Extension[] extensions
Copyright © 2019. All Rights Reserved.