Skip to main content



This rule belongs to the openapi-v3-codegen-linting ruleset and states that:

OpenAPI root object must specify at least one server using the servers property. Information about the servers provide connectivity information related to a target server of the API. Empty servers defaults to localhost which can prevent your end-users from consuming your API.

Maximum SeverityError
MessageNo API server found.
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedCode Generation, Developer Experience Portal
Tagscode generation sdks openapi3 openapi semantic linting apimatic servers server api

Suggested Fixes

  • Ensure that the servers list has been defined in the root OpenAPI object.
  • Ensure that the servers list contains at least one Server Object definition.
  • Ensure that the Server Object contains all required properties.

For More Information