Skip to main content

maximum-schema-component-key-length

Overview

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

The length of the schema key should not exceed 50 characters, which is considered a best practice. Excessive schema key lengths can create readability issues and can cause issues in code generation. Keeping them concise helps to ensure that they are easily understandable and convey their purpose clearly.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageSchema key exceeds 50 characters.
CodeOPENAPI3CODEGEN_L137
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Components
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagscode generation sdks openapi3 openapi semantic linting apimatic components schemas key length 50

Suggested Fixes

  • Shorten the name length so that it does not exceed the limit.
  • Try to keep the name under 50 characters.

For More Information