QID 570028
QID 570028: Invalid operationId Definition
Swagger files can define multiple operations on each end point. Operations include get, post, put, patch, delete, head, options, and trace. Operation uniqueness is defined based on a combination of path and the http method. operationId is not mandatory. When operationId is defined in the swagger definition, it should be unique across an operation. operationId is used by code generators to refer to the operation and links refer to linked operations. Given these two use cases it is important that the operationId follows the rules of characters in url. Based on analysis of the swagger file it has been determined that the operationId is not valid to be used in an URL.
The operationId defined in the swagger file can result in invalid code if code generators are used. And links cannot use the operationId to reference the operation.
/accounts/savings: get: operationId: getExistingUsers summary: Gets all users who have savings accounts ... post: operationId: addNewUser summary: Adds a new user who will have a savings account ...
CVEs related to QID 570028
| Advisory ID | Software | Component | Link |
|---|