At least one server should be defined

Description

You have not defined any servers for your API.

According to the Open API Specification (OAS), the top-level property servers is optional and if not present, the host and the port serving the API documentation are used. However, there is no host serving the documentation for the APIs in 42Crunch Platform, so Security Audit cannot infer the server.

For more details, see the OpenAPI Specification.

Example

The following is an example of how this issue could look in your API definition:

1servers: {}
2

Remediation

Make sure that you have defined at least one server for your API.

1servers:
2  url: https://my.api.server.com/
3  description: My API server
4

OAS v3 also supports defining an array of multiple servers for a single API:

1servers:
2  - url: https://my.api.server1.com/
3    description: API server 1
4  - url: https://my.api.server2.com/
5    description: API server 2
6

Copyright 42Crunch 2021