QID 570088
QID 570088: Parameters not Unique on an End Point
Parameters are defined on all end points for various requests. Operation (end point) parameters can be described through paths, header cookies and queries. The parameters must be unique across on each end point across different methods.
Swagger specification mandates that the parameters should be unique. If not unique API users do not have clarity and there can be a mix up between the operations using the same parameter.
Solution
Please check all your parameters in your end point. Make sure each parameter is defined only once on each end point. For example the "account" parameter is duplicate since it is defined in path and query.
paths:
/users/{id}:
get:
parameters:
- account: path
name: id
- account: query
name: id
Vendor References
CVEs related to QID 570088
Software Advisories
| Advisory ID | Software | Component | Link |
|---|