Verifies parameters are unique for any given operation.
| OAS | Compatibility |
|---|---|
| 2.0 | ✅ |
| 3.0 | ✅ |
| 3.1 | ✅ |
| 3.2 | ✅ |
Identical twins are the topic of social research. And some interesting studies have been published over the years that used identical twins in their studies. Identical parameters, on the other hand, are a design mistake. Solve it before you ship it.
| Option | Type | Description |
|---|---|---|
| severity | string | Possible values: off, warn, error. Default error (in recommended configuration). |
An example configuration:
rules:
operation-parameters-unique: errorGiven this configuration:
rules:
operation-parameters-unique: errorExample of an incorrect operation:
paths:
/cars:
get:
parameters:
- name: filter
in: query
- name: filter
in: queryExample of a correct operation:
paths:
/cars:
get:
parameters:
- name: filter
in: query
- name: another-filter
in: query