Skip to main content

required-default-value-for-constant-entity

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

Entities set as constants must have a non-null and non-empty default value set.

PropertyValue
EnabledYes
Maximum SeverityError
MessageMissing default value for constant entity.
CodeAPIMATICPRE_V404
TypeValidation
Rule SystemSemantic
Broad CategoryTypes
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic default value sample value constant

Suggested Fixes

  • Set a default value for the entity.
  • Make the entity non-constant.