multi-collection-format-only-for-form-and-query-parameter
Overview
This rule belongs to the swagger-v2-standards-validation ruleset and states that:
The value multi can only be assigned to the collectionFormat property if the parameter's location is either query or formData only.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Multi collection format cannot be used with the current parameter's location. |
| Code | SWAGGER20STANDARDS_V111 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Parameters |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger2 swagger standards semantic validation parameter location |
Suggested Fixes
- Ensure that the value of the
inproperty is one of the following values with no typos:queryorformData. - Location value is compared in a case-sensitive manner.