Parameter is not an array, the 'items' property must not be defined

Issue ID: validation-parameter-notarray-items

Description

The parameter in question is not an array, but you have defined the items property for it. Non-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": {
        "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."
        // ...
    }
}