Parameter is an array parameter, the ‘items’ property must be defined

Description

The parameter in question is an array parameter, but you have not defined the items property for it. Array parameters must have the items property defined.

This applies only to OpenAPI Specification (OAS) v2. For more details, see the OAS.

Example

The following is 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"
       ...
     }
  }
}

Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy