Schema is an array, the 'items' property must be defined
Issue ID: validation-schema-array-items
Description
The schema in question is an array schema, but you have not defined the items
property for it. Array schemas 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:
{
"name": "user",
"in": "body",
"description": "The user to be added",
"required": true,
"schema": {
"type": "array"
}
}
Remediation
Make sure that all array schemas have the items
property defined.
{
"name": "user",
"in": "body",
"description": "The user to be added",
"required": true,
"schema": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "string"
}
}
}