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

Description

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

Example

The following is how this issue could look in your API definition:

{
  "parameters": {
     "type": "integer",
     "format": "int32",
     "name": "total",
     "in": "query",
     "description": "Number of the objects in the array."
    "items": {
       ...
     }
   }
}

Remediation

Make sure that non-array parameters do not have the items property defined.

{
  "parameters": {
     "type": "integer",
     "format": "int32",
     "name": "total",
     "in": "query",
     "description": "Number of the objects in the array."
       ...
   }
}

Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy