QID 570054
QID 570054: Missing or Invalid Servers Object
In OpenAPI 3.0, servers object array is used to specify one or more base URLs for your API. Servers should follow RFC 3986. The servers replaces the host, basePath and schemes keywords used in OpenAPI 2.0. Each server has an url and an optional description. Analysis of swagger file has resulted in missing servers object or the defined object is not following the standard.
Invalid servers object is not compliant to swagger specification and results an error. Mis-configured server configurations will damage automation capabilities for the contract.
Solution
Make sure there are servers object is present in the swagger file, and URL is valid without a trailing slash.
Vendor References
CVEs related to QID 570054
Software Advisories
| Advisory ID | Software | Component | Link |
|---|