valid-xml-name-conventions
Overview
This rule belongs to the apimatic-preliminary-validation
ruleset and states that:
Name assigned to an XML entity must follow W3C Extensible Markup Language recommendations.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | XML name assigned to the current entity is invalid. |
Code | APIMATICPRE_V601 |
Type | Validation |
Rule System | Semantic |
Broad Category | XML Attributes |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic name xml |
Suggested Fixes
- Name must start with a letter or underscore.
- Name cannot start with the letters xml (or XML, or Xml, etc).
- Name cannot contain spaces.
- Use only letters, digits, hyphens, underscores, and periods.