non-conflicting-model-and-endpoint-group-names
Overview
This rule belongs to the apimatic-codegen-validation
ruleset and states that:
If controller and model postfixing is disabled, similar model names and endpoint group names can cause conflicts in code generation, therefore, the names of both entities must be kept unique overall.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Model name conflicts with an endpoint group name. |
Code | APIMATICCODEGEN_V133 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal |
Tags | apimatic code generation codegen sdks portal docs validation apimatic name model postfixing endpoint type complex model custom type |
Suggested Fixes
- Make sure the endpoint group names do not conflict with names of models.
- Names are compared in a case-insensitive manner so ensure that names are kept unique accordingly.
- Enable controller or model postfixing in the code generation settings to avoid this issue.