required-items-type
Overview
This rule belongs to the swagger-v2-standards-validation ruleset and states that:
The Items Object must specify the type of the array using the type property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required property type in Items Object is missing. |
| Code | SWAGGER20STANDARDS_V150 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Array Items |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger2 swagger standards semantic validation type items object items |
Suggested Fixes
- Add missing
typeproperty in the Items Object. - Make sure that the
typeproperty is not null or empty.