Header is an array, the 'items' property must be defined

Issue ID: validation-header-array-items

Description

The header in question is an array, 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 of how this issue could look in your API definition:

{
    "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": {
                    // ...
                }
            }
        }
    }
}