Skip to main content

unique-model-name

Overview

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

Names of globally defined custom types/models must be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate model name found.
CodeAPIMATICPRE_V501
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic name type custom type model complex model

Suggested Fixes

  • Remove duplicate models.
  • Assign a unique name to the conflicting models and update references accordingly.
  • Names are compared in a case-sensitive manner.

For More Information