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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate model name found. |
| Code | APIMATICPRE_V501 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Global Types/Models |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary 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.