This rule belongs to the
openapi-v3-codegen-linting ruleset and states that:
The OpenAPI specification requires that an API definition must include a list of servers that are used to access the API. This rule enforces the requirement that the servers array must contain at least one server definition.
|Message||At least one server definition must be specified in the servers array.|
|Broad Category||OpenAPI Servers|
|Products Impacted||Code Generation, Developer Experience Portal|
- Ensure that the servers property is present in the specification.
- If the servers property is present, check that it contains at least one server definition.
- If there are no servers defined, add a new server definition to the servers array to access the API.
For More Information