Skip to main content

required-description-for-enum-item

Overview

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

Enum values often carry domain-specific meaning. Use APIMatic's x-enum-elements extension to define readable names and descriptions for each enum item to improve clarity for agentic tools.

PropertyValue
EnabledNo
Maximum SeverityError
MessageNo description found for enum item.
CodeOPENAPI3AGENTICTOOLS_L661
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedAgentic Tools Generation, Code Generation, Developer Experience Portal
Tagscode generation AI Agentic tools mcp llm openapi3 openapi semantic linting apimatic schema enum name description

Suggested Fixes

  • Use x-enum-elements to define display names and descriptions for each enum value.

For More Information