Parameter is an array, the 'items' property must be defined
Issue ID: validation-parameter-array-items
Description
The parameter in question is an array, but you have not defined the items
property for it. Array parameters must have the items
property defined.
For more details, see the OpenAPI Specification.
Example
The following is an example of how this issue could look in your API definition:
{
"parameters": [
{
"name": "ids",
"in": "query",
"description": "IDs to filter by",
"required": true,
"type": "array"
}
]
}
Remediation
Make sure that all array parameters have the items
property defined.
{
"parameters": [
{
"name": "ids",
"in": "query",
"description": "IDs to filter by",
"required": true,
"type": "array",
"items": {
"type": "integer",
"format": "int32"
// ...
}
}
]
}