Skip to main content

entity-cannot-be-xml-attribute

Overview

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

The current entity type cannot qualify as an XML attribute and therefore can only be marked as an XML element.

PropertyValue
EnabledYes
Maximum SeverityError
MessageEntity cannot be marked as an XML attribute but is still set as one.
CodeAPIMATICPRE_V607
TypeValidation
Rule SystemSemantic
Broad CategoryXML Attributes
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic attribute xml attribute xml

Suggested Fixes

  • Disable the "IsAttribute" flag for the entity in its XML attributes.