Skip to main content

server-description-exists

Overview

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

The description property in the Server object provides a description of the server. It should not be missing or empty. The description helps API users understand the purpose and context of the server. Providing a description is an essential part of API documentation and helps to communicate the server's functionality to developers. A missing or empty description property can lead to confusion and ambiguity in the API documentation, making it difficult for developers to understand the API's intended purpose.

PropertyValue
EnabledYes
Maximum SeverityInformation
MessageMissing or empty description property for server object.
CodeOPENAPI3DOCSGEN_L151
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedDeveloper Experience Portal
Tagsdocumentation generation documentation docs openapi3 openapi semantic linting apimatic server description

Suggested Fixes

  • Add a non-empty description property to each server object, providing a brief description of the server's purpose, location, or other relevant details.
  • Ensure that the description property accurately reflects the intended use of the server and is clear and concise.

For More Information