Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageModel name conflicts with the name of an endpoint group. Model postfixing has been enabled to avoid code generation issues.
CodeAPIMATICPOSTPROCESSCODEGEN_V001
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoints
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic 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.

For More Information