Schema is not an array schema, the ‘items’ property must not be defined

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.

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"
  }
}

Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy