non-conflicting-model-and-endpoint-group-names
Overview
This rule belongs to the apimatic-post-processing-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 | Warning |
Message | Model name conflicts with the name of an endpoint group. Model postfixing has been enabled to avoid code generation issues. |
Code | APIMATICPOSTPROCESSCODEGEN_V001 |
Type | Validation |
Rule System | Semantic |
Broad Category | Endpoints |
Products Impacted | Code Generation, Developer Experience Portal |
Tags | apimatic postprocessing code generation validation name model postfixing endpoint type model 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.