Skip to main content

unique-element-xml-node-names-in-model

Overview

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

The XML node names assigned to fields marked as XML elements in a model must be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate XML node names found in the fields marked as XML elements of the custom type.
CodeAPIMATICCODEGEN_V007
TypeValidation
Rule SystemSemantic
Broad CategoryXML Attributes
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic xml node name xml element xml field type custom type model complex model

Suggested Fixes

  • Ensure that all fields of the complex model marked as XML elements have unique XML node names assigned to them.
  • Remove fields with conflicting XML node names.

For More Information