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

Issue ID: v3-validation-schema-notarray-items

Description

The schema in question is not an array schema, but you have defined the items property for it. Non-array schemas must not 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:

{
    "description": "A simple response returning the name of the pet",
    "schema": {
        "type": "string",
        "items": {
            // ...
        }
    }
}

Remediation

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

{
    "description": "A simple response returning the name of the pet",
    "schema": {
        "type": "string"
    }
}