Skip to main content

unique-field-name

Overview

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

Names of fields in a model must be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate field name found in model.
CodeAPIMATICCODEGEN_V135
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic name field property type custom type model complex model

Suggested Fixes

  • Remove duplicate fields.
  • Names are compared in a case-insensitive manner to prevent issues in Code Generation.

For More Information