Header is not an array header, the ‘items’ property must not be defined

Description

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

For more details, see the OpenAPI Specification.

Example

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

...
  "headers": {
    "x-ids": {
      "schema": {
        "type": "integer",
        "items": {
          ...
        }
      }
    }
  }
...
}

Remediation

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

...
  "headers": {
    "x-ids": {
      "schema": {
        "type": "integer"
      }
    }
  }
...
}

Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy