QID 570049
QID 570049: Enum Value Not Matching Type
Keyword enum is used to specify possible values in an array. The keyword enum is part of schema along with data type of values. Analyzing the swagger file resulted in detecting that the enum value does not match type specified.
Values not matching type specified in schema results in a warning.
Solution
Review the swagger file and ensure all the values in enum match the data type specified in schema. For example, if the type specified is string, all values in enum array should be of the same string type.
/users: parameters: - in: query name: "user1" schema: type: "string" enum: ["temporary", "permanent"] ...
Vendor References
CVEs related to QID 570049
Software Advisories
| Advisory ID | Software | Component | Link |
|---|