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

Description

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

For more details, see the OpenAPI Specification.

Example

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

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

Remediation

Make sure that all array headers have the items property defined.

...
"headers": {
      "x-ids": {
        "schema": {
          "type": "array",
          "items": {
            "description": "Record Ids",
            "type": "integer"
          }
        }
      }
    }
...
}

Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy