QID 570056
QID 570056: Detected Presence of anyOf in OpenAPI 2.0
The keyword anyOf was introduced with OpenAPI 3.0. Analysis of the OpenAPI 2.0 file resulted in detecting presence of anyOf keyword.
Presence of anyOf on OpenAPI 2.0 makes the swagger not compatible and results in a warning. This keyword should only be used with OpenAPI 3.0. If anyOf is present the application should have logic to be able to process the different types of objects that are defined in this object.
Solution
In general avoid using anyOf. If you plan to support anyOf ensure you are using OpenAPI 3.0.
Vendor References
CVEs related to QID 570056
Software Advisories
| Advisory ID | Software | Component | Link |
|---|