Skip to main content

unique-attribute-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 attributes in a model must be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate XML node names found in the fields marked as XML attributes of the custom type.
CodeAPIMATICCODEGEN_V008
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 attribute xml field type custom type model complex model

Suggested Fixes

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

For More Information