You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an ApiModelProperty is on a List type, the allowableValues entry is not shown in the UI.
When the code looks like this:
@ApiModelProperty(value="a list of values", allowableValues="foo,bar,baz", required=false)
public void setValues(List<String> values) {
this.values = values;
}
The generated JSON looks like this:
"values": {
"type": "array",
"description": "a list of values",
"items": {
"type": "string",
"enum": [
"foo",
"bar",
"baz"
]
}
}
But it should look like this:
"values": {
"type": "array",
"description": "a list of values",
"items": {
"type": "string"
},
"enum": [
"foo",
"bar",
"baz"
]
}
This occurs in version 2.4.0.
The text was updated successfully, but these errors were encountered:
When an
ApiModelProperty
is on aList
type, theallowableValues
entry is not shown in the UI.When the code looks like this:
The generated JSON looks like this:
But it should look like this:
This occurs in version 2.4.0.
The text was updated successfully, but these errors were encountered: