Skip to main content

unique-model-names

Overview

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

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

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate model name found.
CodeAPIMATICCODEGEN_V131
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs 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-insensitive manner to prevent issues in Code Generation.

For More Information